unify catch fallback value sources
This commit is contained in:
@@ -955,6 +955,11 @@
|
||||
- `noreturn` expressions coerce to any expected value type and terminate path analysis
|
||||
- `unreachable` always traps at runtime and reports an error during comptime evaluation
|
||||
|
||||
49. unify catch fallback value sources (implemented)
|
||||
- `expr catch [|error|] value_source` uses the same ordinary expression, value block, and
|
||||
value-producing control-flow forms with or without an error capture
|
||||
- void fallthrough and diverging `noreturn` fallbacks remain valid
|
||||
|
||||
## A word on unchecked casts
|
||||
|
||||
For casts that bypass safety checks, Honey provides builtin functions:
|
||||
|
||||
Reference in New Issue
Block a user