-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add at-TypedDict macro #8
Conversation
@StefanKarpinski @simonster , anyone ? |
Looks good to me. We definitely need something like this. |
This seems fine to me. Does the syntax seem good – first pair is the types? |
Maybe this ship has already sailed on this, but I wonder whether it might be better to have a macro that just makes the 0.4 syntax work everywhere, so you'd write: @compat Dict(a=>1, b=>2) or something like that. AFAICT this can still be parsed on 0.3. |
Seems hard to implement since that's then one huge |
Doesn't seem that bad to me... the In the present case, I'd prefer |
I'm not too concerned about having one huge |
I would strongly prefer a single |
Why? |
Because it is much clearer, shorter, and easier to remember: you use the Julia-master syntax, and just stick It also has the virtue of acclimating the programmer to the Julia-master syntax, as well as being instructional for anyone reading the code. |
Those are all good reasons. Seems like the way to go. |
That's much better. I'm closing this one. Thanks. |
Add @compat as discussed in #8
No description provided.