Join Slack
Powered by
the implementation is what I find nifty. `return` ...
# announcements
k
kirillrakhman
03/18/2016, 1:07 PM
the implementation is what I find nifty.
return
is actually an expression of type
Nothing
and because
Nothing
is a subtype of every other type, it can be placed whenever any other type is expected. Same applies to
break
,
continue
and
throw
6
Views
Open in Slack
Previous
Next