logoalt Hacker News

bryanlarsenlast Sunday at 1:50 AM1 replyview on HN

I'll give you "more ergonomic" if you'll give me "less safe".


Replies

fc417fc802last Sunday at 2:51 AM

I'd argue it's no less safe than the status quo, just easier to use. The standard "assert" can be switched off. There's "__builtin_unreachable". My personal utility library has "assume" which switches between the two based on NDEBUG.

C is a knife. Knives are sharp. If that's a problem then C is the wrong language.