TRY

Constant TRY 

Source
pub const TRY: &str = "try";
Expand description

try: block โ€” run the block and reify a failure as a Result[T, E].

The handler is a form, so it is lexically scoped by construction rather than by a search at run time โ€” which POPL 2019 gives the general argument for and docs/38 ยง38.4 adopts. In a language where effects decide placement, an accidentally intercepted effect would be an accidental re-placement.