logoalt Hacker News

sidkshatriya11/07/20241 replyview on HN

code that uses errno is also a bit harder to understand. I like the way Rust does it -- if a function can fail, it returns a Result.


Replies

dailykoder11/07/2024

While that might be true and the industry has evolved and learned about "better" ways, the old systems still exist. I don't see any reason to complain about it.

Yes, we can do better. Yes, we probably should do better. But in some cases you really have to think through every edge case and in the end someone has to do it. So just be grateful for what we have.

show 2 replies