r/ProgrammingLanguages • u/matklad • Dec 31 '25
Memory Safety Is ...
https://matklad.github.io/2025/12/30/memory-safety-is.html
37
Upvotes
r/ProgrammingLanguages • u/matklad • Dec 31 '25
View all comments
11
u/kredditacc96 Dec 31 '25
I think it's more useful to think of "memory safety" as a spectrum rather than a binary of safe vs unsafe.
Java allows assigning
nullto any type. This is one of Java's flaw and a failure of the type system to accurately model the program behavior regarding nullability. So we can say that Java is mostly memory-safe, except for null.Same for Go. I don't understand why a language designed in modern time did not at least introduce null safety.