Re:Weird Expressions in Rust
by octachron on Friday June 27, 2025 @05:50PM
(#44400563)
Return (or other effects) does make sense as an expression in a functional language. Typically, OCaml has `raise Exception` which is also an expression, with the same type as `return` or any never returning function. And exceptions can also be used to implement a user-defined `return` function.
[ Parent
| on HN ]
There are no comments on this comment yet.