Skip to content

Conversation

@asakaev
Copy link
Contributor

@asakaev asakaev commented May 17, 2019

number is a better name than many here.

@dwijnand
Copy link
Member

I think the "many" is short for "more than 2? woah, that's too many to count".

Why do you prefer "number"?

@asakaev
Copy link
Contributor Author

asakaev commented May 19, 2019

I like "many" a lot. It's very clear, but zero and negative numbers do not match "many" definition.

@dwijnand
Copy link
Member

Ah, I see your point. Perhaps "other", then.

And maybe even mention the fact that the int returned by Random.nextInt(10) is known to be between 0 and 10, but that's not in the type?

@asakaev asakaev changed the title Update pattern-matching.md Refine pattern-matching.md May 19, 2019
@asakaev
Copy link
Contributor Author

asakaev commented May 19, 2019

Exactly what is needed!

@SethTisue SethTisue merged commit 86b8f66 into scala:master May 26, 2019
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