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

It’s not about handling the error, it’s about propagating unexpected error. Because most errors are that; unexpected.

Modern languages do this by default, using exceptions, or force you to check return values using Result<> or alike.

Even in C, when compiled through some more strict linter, this would fail because ignored return value should be prefixed with (void).

In either case I think the main takeaway from the article is that a language where even hello world has such pitfalls, isn’t suitable, given the many other better options today.



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

Search: