| ▲ | bryanlarsen 4 days ago | |||||||
I'll give you "more ergonomic" if you'll give me "less safe". | ||||||||
| ▲ | fc417fc802 4 days ago | parent [-] | |||||||
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. | ||||||||
| ||||||||