@JaMiT "prevents passing in a null pointer" is a good point. Regarding having to check for null pointers, I believe this is a misconception. You don't have to check for null pointers either way, you can just crash. Some C standard library functions do this, there's nothing wrong with it.
↧