Skip to content

Avoid using anonymous classes in some situations #4503

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 1 commit into from
May 11, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented May 10, 2018

- They make debugging harder since it's not always clear what
  `Symbols$$anon$3` refes to
- If they take an outer reference as parameter, we currently generate
  inefficient code for them due to scala#4502
@smarter
Copy link
Member Author

smarter commented May 10, 2018

test performance please

@dottybot
Copy link
Member

performance test scheduled: 1 job(s) in queue, 0 running.

@smarter smarter requested a review from odersky May 10, 2018 15:38
@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/4503/ to see the changes.

Benchmarks is based on merging with master (d14c89b)

Copy link
Contributor

@Blaisorblade Blaisorblade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 at least for debugging

@smarter smarter merged commit ecf95c1 into scala:master May 11, 2018
@allanrenucci allanrenucci deleted the opt/anon-class branch May 11, 2018 13:42
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.

4 participants