Skip to content

Is Not Nothig, should be something! #581

Closed
@VBAndCs

Description

@VBAndCs

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 toIs 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions