#Analog to `catch` but for success

1 messages · Page 1 of 1 (latest)

flat oracle
#

Is there a way to execute code only if an error union type doesn't have an error?

marsh viper
#
if (err_union) |unwrapped| {
  // success
} else |err| {
  // failure
}
#

but all of that is required, there isn't a way to "catch" success