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

That's great! Though, by making it not forced and giving users a choice, you never know which library code you call might not use those features and still panic when you use it.

(Just to be clear, I don't really propose that a language should offer only panic-free operations; I just think it's a nice thought experiment and discussion to have).





True. I'd really love rust to have a nopanic annotation you can put on function calls which guarantees that nothing in the call tree can panic.



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

Search: