-
Notifications
You must be signed in to change notification settings - Fork 155
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
prevent accidental misuse of if-else #449
Comments
I regularly forget to add However I would propose to only merge a pull request that implements this if it does not come with a noticeable performance hit during compilation. I appreciate the fast compilation speed of That being said, I think I will take a stab at this when I find the time. Edit: It probably just needs to be added here. |
@puetzp It's very unlikely that a parser change would have a noticeable impact on build time. Most of the slowness of proc macros comes from generating too much code, or a one-off cost from compiling |
#450 was done on the old parser, which has since been replaced. I'll redo it on the new parser. |
i had this template in my code:
maud rendered this to:
it would be nice if maud could make all of its own constructs reserved keywords, so that this situation doesn't occur anymore. there shouldn't be a reason to ever create an
<else>
tag. if there is, surely new syntax like"else" { .. }
can satisfy that usecase.The text was updated successfully, but these errors were encountered: