> One annoyance in Scala is when it infers a type to be, say, List[Nothing], 
> which so far has never been what I intended.
>
While I remember some “interesting” type inference results, List[Nothing] 
is a bad example. There is only one, single, unique value of List[Nothing] 
and it is the empty list. And in fact, that's the only possible element 
type of an empty list.

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/4VY8xLUJIdsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to