Closed
Description
What is wrong with: If Obj Is Not Nothing Then
?
I think IsNot
was a bad decision to make in the first place. Is Not Nothing
doesn't compile now, so, it is possible to allow it and convert it under the hood to IsNot Nothing
. The first is the natural readable syntax, and there is nothing confusing about it, both for human and compiler. I am aware that some will argue that 'Not Nothingis not a Boolean expression, but it is a normal English expression, that VB tries to be as close as possible to it. And as long there is no other possible meaning to
Is Not Nothing`, so, there is no need at all to forbid it. Again: This is VB not C#, where the compiler should out smart us!
Metadata
Metadata
Assignees
Labels
No labels