The Is Operator

Kyle G. kyle.james.gibson at gmail.com
Tue Oct 2 14:34:54 PDT 2007


Anders F Björklund wrote:
> Kyle G. wrote:
> 
>> The code I am concerned about is "var !is null" which appears to 
>> translate to "var not is null" when it actually means "var is not 
>> null." Is there any special reason why we are unable to do "var isnot 
>> null" or "var is not null"?
> 
> A few hundred, search the newsgroup for more details...
> 
> If you hate it a lot, then just use "if (var)" instead.
> 
> --anders


It's not that I hate it. In fact, I use !is all the time where it 
applies. It just looks bad.



More information about the Digitalmars-d mailing list