ref: 7cb2053ab0228919b08a6c3674de5f474b431cc2
dir: /libstd/error.myr/
pkg std =
type error(@a, @b)
generic try : (val : error(@a, byte[:]) -> void)
;;
type error(@a, @b) = union
`Success @a
`Failure @b
;;
generic try = {val
/*
match val
`Success v: -> v;;
`Failure msg: die(msg);;
;;
*/
}