-
Notifications
You must be signed in to change notification settings - Fork 58
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
Local Variable Metadata #74
Conversation
I'm in favor of this, but at least two things still need clarification:
|
First point added, not sure what exactly you mean by the second one. What are metadata function arguments? |
I mean that |
Added. I didn't even know about that one (or forgot, regardless, I didn't find it in the manual). :) |
Maybe it would make sense for the alternative syntax to also work ( |
I agree. I like that solution more. |
No, we won't change it like that. It's expression metadata and shouldn't become a special case for local variables. It also doesn't play well with comma syntax. |
Ahh agreed, I misunderstood the proposal initially |
We have decided to accept this proposal in our haxe-evolution meeting yesterday. There's not much to say about this one. Progress will be tracked in the linked Haxe issue. |
Add new syntax for metadata on local variables:
var @:meta foo:Bar;
.Rendered Version