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

It also makes it very obvious in the code, something very dangerous is happening here. As a code reviewer you should see an unwrap() and have alarm bells going off. While in other languages, critical errors are a lot more hidden.


I hate that it's a method. That can get lost in a method chain easily enough during a code review.

A function or a keyword would interrupt that and make it less tempting


Well, you can request Clippy to tell you about them. I do that in my hobby projects.




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

Search: