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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.x
    • Component/s: parser, parser-antlr2, syntax
    • Labels:
      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

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

              Dates

              • Created:
                Updated: