Skip to content

Peephole optimization to drop .apply from partially applied methods #16022

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

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 12, 2022

This optimization was postulated for making a proposed fewerBraces idiom efficient.

It seems JS prints doubles differently from Java, so avoid them in test check files.
@KacperFKorban KacperFKorban merged commit 684ae79 into scala:main Sep 14, 2022
@KacperFKorban KacperFKorban deleted the optimize-apply branch September 14, 2022 10:09
@Kordyjan Kordyjan added this to the 3.2.2 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants