3 ms·
> it is a longstanding problem with Java it's, along with null pointers, probably the no 1 biggest foot gun in the language, responsible for countless bugs in
by bedobi 2y ago
> it is a longstanding problem with Java
it's, along with null pointers, probably the no 1 biggest foot gun in the language, responsible for countless bugs in pretty much every app ever written in the language, and it's treated as some unaddressed elephant in the room we don't talk about or consider alternatives to
- PaulHoule 2y agoIt is easy to put the right behavior in a function wrapper like https://github.com/paulhoule/pidove/blob/97f8ec697d2890f13ba1726fa3640d05e808fd6f/src/main/java/com/ontology2/pidove/util/DuctTape.java#L75 https://github.com/paulhoule/pidove/blob/97f8ec697d2890f13ba...
- dgellow 2y agoC# added nullable reference types a few years ago. Is there an equivalent in Java? That makes dealing with null pretty much a non-issue https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references https://learn.microsoft.com/en-us/dotnet/csharp/nullable-ref...