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

If you forgot to return a value, a function shouldn't have compiled. In Nim you can easily forget to return something or have a hole in your branching and get a defaulted value, instead of a compiler error.

In some cases an implicitly declared variable feels neat and convenient, but I'm not sure it's worth it.



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

Search: