Skip to content
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

Rewrite typer.TermRefSet #5593

Merged
merged 1 commit into from
Dec 11, 2018
Merged

Conversation

allanrenucci
Copy link
Contributor

Rewrite motivated by 2.13 collection rewrite. TermRefSet used to extends mutable.Traversable[TermRef] which is now deprecated.

@allanrenucci
Copy link
Contributor Author

test performance please

@dottybot
Copy link
Member

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

@dottybot
Copy link
Member

Performance test finished successfully:

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

Benchmarks is based on merging with master (8004566)

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

If we want to keep with the spirit of the pervious API, the right thing would be to replace TraversableOnce with IterableOnce.

But then we'd have to implement an iterator, which might be less efficient.

So I am OK with sepcializing here.

Rewrite motivated by 2.13 collection rewrite.

`TermRefSet` used to extends `mutable.Traversable[TermRef]`
which is now deprecated. If we want to keep with the spirit
of the previous API, the right thing would be to replace
`Traversable` with `Iterable`. But then we'd have to
implement an iterator, which might be less efficient.
@allanrenucci allanrenucci merged commit 2d19588 into scala:master Dec 11, 2018
@allanrenucci allanrenucci deleted the rewrite-termrefset branch December 11, 2018 13:03
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