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
f-interpolator should not inject %s needlessly #9784
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9784?orig=1 |
@som-snytt said: |
@sjrd said: |
@sjrd said: |
@som-snytt said: |
Bumping this, because now that s-interpolator is more reasonable, f-interpolator should translate normal interpolation (formatless) to string add. In particular, the semester project to bring f-interpolation to dotty should also do it. |
When the f-interpolator winds up just concatenating strings, it should just use StringBuilder instead of String.format. This makes a big difference on scala-js.
These should be equivalent:
The text was updated successfully, but these errors were encountered: