Macro af_core_macros::attempt[][src]

macro_rules! attempt {
    ($($tokens:tt)+) => { ... };
}

Runs a block of code and catches ? operator returns.

This is just a cleaner version of creating a closure and immediately calling it. It is intended to serve as a replacement for try { .. } until it is stable.