3 ms·
try blocks? is this a bit out of date?
by anacrolix 4y ago
try blocks? is this a bit out of date?
- Spiritus 4y agoI think you're mixing up try blocks with the old try! macro.
- nrc 4y agoNope, try blocks are a new (unstable) feature
- tialaramex 4y agoHow so? As it says this is not yet a stable feature, but if you run nightly Rust it's available. Try blocks let you do what ? (the Try operator) does within a block, rather than needing to split out a separate function for it, which makes sense because why should functions be special in this way?
- anacrolix 4y agoI have indeed confused it with try! macro