3 ms·
I always found this[0] analogy quite accurate whenever I discussed this issue with others. Setting aside how different languages (mis)treat null as a concept,
by decebalus1 8y ago
I always found this[0] analogy quite accurate whenever I discussed this issue with others.
Setting aside how different languages (mis)treat null as a concept, I think the whole discussion is about convoluting boolean logic with memory addresses and some languages do a better/worse job at being 'intuitive' than others.
I had great success with this[1] whenever I felt things were going in the wrong direction or when the language constructs of dealing with nulls were in the way of the domain design.
[0] https://www.b4x.com/android/forum/attachments/unbenannt-jpg.54095/ https://www.b4x.com/android/forum/attachments/unbenannt-jpg....
[1] https://en.wikipedia.org/wiki/Null_object_pattern https://en.wikipedia.org/wiki/Null_object_pattern