3 ms·
> > the underscore (_) has six different meanings depending on where it's used. > no it has not ,it always express some kind of default parameter. You might w
by laureny 13y ago
> > the underscore (_) has six different meanings depending on where it's used.
> no it has not ,it always express some kind of default parameter.
You might want to refrain from commenting on a topic you don't seem to know much about.
I was wrong when I said "six", it looks like the number is up to eleven today. Here is a short list:
- Existential types
- Higher kinded type parameters
- Ignored variables
- Ignored parameters
- Wildcard patterns
- Wildcard imports
- Hiding imports
- Joining letters to punctuation
- Assignment operators
- Placeholder syntax
- Partially applied functions
More details: http://stackoverflow.com/questions/8000903/what-are-all-the-uses-of-an-underscore-in-scala http://stackoverflow.com/questions/8000903/what-are-all-the-...
- camus2 13y ago> You might want to refrain from commenting on a topic you don't seem to know much about. the underscore is not an operator.that's why you are listing random stuffs that are not related. It express an intent, see my previous message. You might want to stop patronizing people you dont know. Or your head is too big for that.
- laureny 13y ago> it express an intent, see my previous message. Actually, it can express eleven intents, depending on where it's being used.