Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It looks like they might need to use "r#try!(...)" in Rust 2018 (a trivial search replace, 'cargo fix' might do it too, not sure), but the macro is still available:

https://doc.rust-lang.org/stable/std/macro.try.html

It's trivial to implement yourself, too (if you, for example, wanted to give it a non-reserved name).



Thanks. Didn't know about the raw identifier syntax. That's kinda ugly, so I'd probably still go with copying it to all of my projects and giving it a new name if I were to update to Rust 2018.


On the other hand, you could argue that the r# gives you "more prominence" which is exactly the stated goal of using that macro.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: