3 ms·
I think you meant "... will never be false", that's what makes the assert(false) so silly. I feel that some programmers don't understand the actual semantic me
by unwind 10y ago
I think you meant "... will never be false", that's what makes the assert(false) so silly.
I feel that some programmers don't understand the actual semantic meaning of the word "assert", they just use it as an opaque key word meaning "check this", or something.
To me, it should be possible to read an assert almost like English, i.e.
assert(handle != INVALID_HANDLE);
can be read like "assert that the handle isn't invalid", i.e. is valid. Hm. I'm not stating this very clearly, sorry.
- BoorishBears 10y agoIndeed I meant false (actually "will always be true" would probably have been easier to understand as well)