Online proctor service ProctorTrack hacked
bleepingcomputer.com2 pointsby _28jh1 comments
assert(!"You gave an invalid letter");
The string literal is a pointer, so !pointer is false. And then you get a nice explanation message when the assertion fails. I wish all assert gave optional explanation messages.
That's not possible with nullable types. The whole point of nullable types is to mark types that can be null. So this is possible:
But now it's not much different than this:
My point is that these are fundamentally the same thing. The only difference is syntax, ergonomics, and compiler support.