Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5773

Problem distinguishing !=~ and != ~ plus similiar ones

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • parser, parser-antlr2, syntax
    • None

    Description

      In Groovy if you see x==~y and x == ~y you can can get a problem, because it is easy to oversee the space in between, changing the meaning of the compare. The problem is toped by x != ~y being the negation of x == ~y, but there is no negation for ==~. This issue is therefore asking for a replacement of the operators ==~ and =~ in a way that allows the negation too and is still readable. For this no unary operator symbol should follow the equals if equals is kept.

      Attachments

        Activity

          People

            Unassigned Unassigned
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: