Considering the following code is valid (and doesn't execute, as expected):
var item=null;
if(item) { ... }
It seems logical that I should be able to do the following:
var item=null;
if(!item) { ... }
Which instead throws an UnexpectedTypeException.
Is the usage of the not operator on a null to return a true something that could be considered?
Thanks,