-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow aliases with using
#407
Conversation
Correction: The word Additional note: The way I've implemented |
Upon further consideration, I actually think the current approach may be the best "reasonable" option available. I have added comments to camp.y to explain how the syntax of |
C++11 introduced the keyword
using
, which can be used for a more intuitive but equivalent version of typedef. For instance,are now equivalent. This PR introduces a similar feature into Asymptote. There's no new functionality, but many programmers find the
using
-style alias easier to read since it is much more similar to variable assignment.