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

SI-9245 Fresher name in Try and test #5219

Merged
merged 1 commit into from Jun 14, 2016
Merged

Conversation

som-snytt
Copy link
Contributor

Fresh name for catcher gets a dollar. "Here, have a dollar."
Test due to retronym demonstrates possible conflict.

Over the lifetime of the universe, surely at least one code
monkey would type in that identifier to catch a banana.

Fresh name for catcher gets a dollar. "Here, have a dollar."
Test due to retronym demonstrates possible conflict.

Over the lifetime of the universe, surely at least one code
monkey would type in that identifier to catch a banana.
@scala-jenkins scala-jenkins added this to the 2.11.9 milestone Jun 7, 2016
@retronym
Copy link
Member

retronym commented Jun 7, 2016

LGTM 💵

@retronym retronym self-assigned this Jun 7, 2016
@adriaanm
Copy link
Contributor

adriaanm commented Jun 8, 2016

It sure is a catchy name, so probably good to make it uniquer. Ca-tching!

@som-snytt
Copy link
Contributor Author

18 long hours later, I'm still laughing at ca-tching. @adriaanm

@adriaanm
Copy link
Contributor

adriaanm commented Jun 8, 2016

😁

@retronym retronym merged commit 91b6944 into scala:2.11.x Jun 14, 2016
@retronym
Copy link
Member

I found similarly destitute fresh names:

synthesizePartialFunction(newTermName(context.unit.fresh.newName("x"))
unit.freshTermName("nonLocalReturnKey")
unit.freshTermName("liftedTree")

I don't think that the potential classes are exploitable (in terms of compiler crash or wrong semantics), but it couldn't hurt to offer them some alms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants