Skip to content

Parse Function arity without throwing exceptions #2694

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
Jun 7, 2017

Conversation

smarter
Copy link
Member

@smarter smarter commented Jun 6, 2017

Using NumberFormatException in the normal control flow of the program
makes it harder to debug the compiler by stopping on all instances of
RuntimeException.

@smarter smarter requested a review from odersky June 6, 2017 16:40
Using NumberFormatException in the normal control flow of the program
makes it harder to debug the compiler by stopping on all instances of
RuntimeException.
@smarter smarter force-pushed the fix-parse-number branch from 5d21551 to 7eb3572 Compare June 6, 2017 16:41
@odersky
Copy link
Contributor

odersky commented Jun 7, 2017

I guess that would still fail for numbers that are too large. But that should not be a problem for most debug sessions. LGTM.

@odersky odersky merged commit 7e9ea25 into scala:master Jun 7, 2017
@allanrenucci allanrenucci deleted the fix-parse-number branch December 14, 2017 19:20
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.

2 participants