https://bugzilla.wikimedia.org/show_bug.cgi?id=49867

--- Comment #2 from Bartosz DziewoƄski <[email protected]> ---
(In reply to comment #1)
> The parentheses parsing behavior is well-defined and IMO intuitive (unless
> you expect whitespace to be entirely insignificant)

To expand on this for posterity, as you yourself probably know what the issue
is:

  The following are method calls, calling `meth` with an argument of
  `/regex#/`:

    meth(/regex#/)
    meth (/regex#/)
    meth /regex#/


  The following are divisions, dividing `meth` by `regex` (which as
  usual can be methods or variables; the rest of the line is a comment):

    meth / regex#/
    meth/regex#/


So a method call is only used when either explicitly enforced by the
parentheses or when the whitespace on two sides of '/' is not balanced. This
seems pretty intuitive to me.

Similar warnings also pop up all the time when using '*' without parentheses
all over (multiplication vs unary "splat"). They can also be triggered by unary
minus or plus.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to