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

Go's error handling is very much not perfect. There's no reason for it not to have a bunch of syntax sugar for extremely common patterns.

See all the syntax sugar C# has for handling nullable types. That could easily be done for error handling as well. Or see Odin which has the exact same error handling mechanism as Go but with proper constructs to make it painless.



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

Search: