-
Notifications
You must be signed in to change notification settings - Fork 468
^10.0.0-alpha.1
template literals output "regression"
#5521
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
Comments
@DZakh see here: rescript-lang/syntax#602 |
That attempt at the syntax level is no good. Some cleanup is needed first. Then it should be doable in the compiler back-end. |
It's actually not clear how to do it in the compiler back-end without invasive changes. |
What about the trailing empty string |
Same |
Putting this under milestone 10.1. If anyone is interested in contributing a PR meanwhile, that's great. |
Now that `j` interpolation is gone, string append can be optimized in the back-end. Fixes #5521
Now that `j` interpolation is gone, string append can be optimized in the back-end. Fixes #5521
Now that `j` interpolation is gone, string append can be optimized in the back-end. Fixes #5521
Now that `j` interpolation is gone, string append can be optimized in the back-end. Fixes #5521
The compiler started adding empty strings around values in template literals. Technically doesn't break anything, but adds a redundant operation.
Example:
Output:
Before:
Context: DZakh/sury#1 (comment), #5514 (comment)
The text was updated successfully, but these errors were encountered: