Throw
stops evaluation and returns
value
as the value of the nearest enclosingCatch
.Catch(value, tag)
is caught only byCatch(expr, form)
, wheretag
matchesform
.
Examples
Using Throw
can affect the structure of what is returned by a function:
A Throw
without an enclosing Catch
prints the message: Uncaught Throw(1) returned to top level.
Implementation status
- ✅ - full supported