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

So, I'm not really caring about memory safety--there are lots of reasons to care, mind you, but that's not my concern.

It's that, quite simply, not being able to easily catch integer arithmetic errors is a really annoying flaw in a language that needs to do systems work--especially if it's used in places where, say, you are decoding buffers or handling IO or basically getting data from an untrusted/faulty source.

It could even be done as a basic addition to the standard library...I frankly don't care how. It's just that it is a really obvious wart to anyone that's ever had to do safe integer work in the lingua-franca of languages, C.

Just because the program doesn't crash doesn't mean it's being useful.



As mentioned in the OP, support for checked arithmetic does exist in the stdlib, and has for ages.




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

Search: