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

There's nothing wrong with unwrap. It's just an assert. Even a[i] is just shorthand for a.get(i).unwrap(). Asserts are definitely appropriate in production code, just not for handling run-time errors.


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

Search: