Rust2015で try { ... } 的なものを使いたくなったら macro_rules! try_expr { ($($bd:stmt)*) => { (|| { $($bd)* })() } } みたいにクロージャで無理やり括ってしまうみたいな方法も無くはない(きれいではない)
0 replies
1 retweet
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.