@propensive you might know… I’m trying to remember which scala keyword can be repeated multiple times in a single “chain” for some reason… Remember there was such case but can’t remember now… hmm
But, to the typechecker, return is equivalent to an exception. I think it was even implemented under the hood by throwing an exception and catching it at the method boundary in early versions of Scala. (Maybe it still is!)
-
-
Sure, I just meant the case in which you'd actually be able to "hold" a Nothing
-
Give me a Nothing and I'll be happy to hold it! ;)
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.