-
Notifications
You must be signed in to change notification settings - Fork 13
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
Improve Code generation #105
Comments
Thanks for creating this -- I like the idea of using quote as it's closer to rust code, but I'm afraid it'll be harder for newcomers to come in and contribute as they'll have to understand quote's intricacies instead of just manipulating strings. That being said, it'll be one step closer to always producing correct code. |
At the same time, Tera is quite heavy for something as simple as doing codegen, so I'm with you there. |
as a counter point: we are already using quote / syn (not its macros though) to parse the input file, so we have to already deal with a little quote stuff |
Although we're using quote/syn to parse rust code, it can be confusing for newcomers, especially the 'repetition' syntax. I don't mind giving it a shot though! We can revert if necessary :-) |
Currently code generation is basically done by string concatenation, which is "good enough" but could be improved, current suggestions are:
tera
(Some maintenance changes (refactors) #89 (comment))quote
+prettyplease
The text was updated successfully, but these errors were encountered: