Hacker News new | ask | show | jobs
by anacrolix 1313 days ago
try blocks? is this a bit out of date?
4 comments

How 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?

I think you're mixing up try blocks with the old try! macro.
Nope, try blocks are a new (unstable) feature
I have indeed confused it with try! macro