3 ms·
Many modern languages (Kotlin, Rust, Swift) handle this problem well. Though I'm not sure if that problem is really that huge. Bad code will break in many ways
by vbezhenar 11y ago
Many modern languages (Kotlin, Rust, Swift) handle this problem well.
Though I'm not sure if that problem is really that huge. Bad code will break in many ways. And breaking on nulls usually isn't that dangerous, data isn't corrupted and stack is safe.
There's another mistake of computer science in my opinion is inefficient array bounds checking and implicit integer overflow behavior. And those mistakes are more dangerous, they lead to data corruption and exploits.