@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
-
-
Indeed, that's what I was going for - it'd be super weird if `return notNothing` typechecked as Nothing and kot throw :D
-
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!)
- 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.