Error
Symmetry of error throwing and handling.
#
Try-catchSymbol: |->
Translated to JavaScript try-catch.
First parameter is catch function.
Other parameters are try lines.
Unlike JavaScript try-catch
operator |->
in Una always returns some value and it doesn't have finally
block.
Example:
If you need to run async code use <--
instead of <-
in try or -->
instead ->
in catch:
#
Throw errorSymbol: <-|
Translated to JavaScript throw.
Example: