-
Notifications
You must be signed in to change notification settings - Fork 16
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
NOLOL string building #86
Comments
A naive version:
This compiles to 6 lines. Reducing it to |
I understand what you are trying to archive with this feature.
I think a lot of Issues would arise trying to implement this feature, and I am not convinced that it's worth it. Most people seem to be doing fine with just adding up strings. P.S. while I am always happy about people opening new issues, I would also be quite happy about getting responses on questions regarding already existing issues ;) |
I mean, yeah, it probably won't be a single-line action. But it would be nice if I didn't have to do all the minimization manually. |
#78 will help with string-building by automatically moving constants to a satup-line. All in all I would prefer it, if the optimization of string-building is handled by some kind of general optimizations instead of a specific string-building feature. |
Closed as won't fix. |
It is currently annoyingly difficult to build up a complex string with variable substitutions (eg, building up the value for a text panel).
Doubly so if you want to do so in an optimized manner (minimizing lines).
My current example, as psuedo-nolol:
Naive writings compile down to 5 or 6 lines, but I'm pretty sure the compiler (or a less lazy me) could do better.
The text was updated successfully, but these errors were encountered: