That could depend on what you're used to. Decorator thing looks like C# attributes/JS decorators, eg.
So, the only way to have early return is with a return keyword, which itself is an expression that has the type !.
-
-
So, a return in tail position is valid because it falls out of normal semantics, it would be less consistent to disallow it...
-
... and the only way to get back to consistency would be to disallow the "return" keyword, but then that would really harm readability.
- 5 more 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.