3 ms·
As long as you are comparing with a literal then == with nulls is very intuitive. I agree that if it did not exist it would be not worth to be added and that a
by afiori 2y ago
As long as you are comparing with a literal then == with nulls is very intuitive.
I agree that if it did not exist it would be not worth to be added and that almost every other use is bad, but != null and == null are very easy to learn idioms.