Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Expression : typecasting #651

Closed
arakov opened this issue May 2, 2024 · 1 comment
Closed

Template Expression : typecasting #651

arakov opened this issue May 2, 2024 · 1 comment
Assignees
Labels
Design Idea New language feature
Milestone

Comments

@arakov
Copy link
Member

arakov commented May 2, 2024

Is your feature request related to a problem? Please describe.
Template expression can be used for more intuitive typecasting

Describe the solution you'd like
Instead of current solution, which a bit complex / not intuive

cast ChatMember(client.Parameter)

a template is proposed (similar to C#)

client.Parameter :as ChatMember

Similar

client.Parameter :of ChatMember

is analogue to:

client.Parameter.instanceOf(ChatMember)
@arakov arakov added this to the ELENA 6.2 milestone May 2, 2024
@arakov arakov self-assigned this May 2, 2024
@arakov arakov added the Design Idea New language feature label May 2, 2024
@arakov
Copy link
Member Author

arakov commented May 2, 2024

Implemented in ELENA 6.0.10

@arakov arakov closed this as completed May 2, 2024
@arakov arakov mentioned this issue May 7, 2024
3 tasks
arakov added a commit that referenced this issue May 7, 2024
* [ADDED] #635 : new entry point to invoke the functionality from another program
* [ADDED] ecv-cli : adding a filter for listing members
* [FIXED] aarch64 : xstorefir opcode
* fixing xstorefir
* aarch64 assembler : supporting MOVN
* #635 : working on second example calc
* fixing ppc64le open opcode
* [ADDED] new option : auto-preloaded module extension
* [FIXED] reducing the total size of an executable (almost by half) by ignoring module extensions by default
* [FIXED]toJson extension
* [FIXED]try statement does not allocate an exception
* [FIXED]toJson extension
* [FIXED] #401 - += operator with array
* [FIXED] #488 : Declaring auto struct variable
* [FIXED] #522 : single dispatch variadic message
* [ADDED] #646 : Calling own method directly without target
* [FIXED] #630 : 64bit GC routine - expanding header
* [FIXED] x86-64 : calling from external
* [ADDED] chat sample
* [FIXED] #608 : single dispatch for constructors
* [ADDED] #651 : Template Expression - typecasting
* [ADDED]a static method must have an access to private methods
* fixing exprtree1 tutorial sample
* [FIXED] #504 : Support an array operation with external function arguments
* [FIXED] #589 : Supporting ?: operator inside ??
* [ADDED] #569 : Ignoring order of declaration
* #601 : optimize: if (nil == name) {} else {}
* IDE : fixing background issue
* [FIXED]elt-cli : fixing support for extension methods
* [FIXED] xhookdpr for x86-64 mode
* x86-64 : fixing elenavm & elt
* [ADDED] syntax highlighting
@arakov arakov mentioned this issue May 7, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Idea New language feature
Projects
None yet
Development

No branches or pull requests

1 participant