[perl #131695] [LTA] Confusion in precedence with <<$foo>>[0]

2017-07-05 Thread Zoffix Znet via RT
On Tue, 04 Jul 2017 10:29:50 -0700, larry wrote: > While we could, in theory, do some lookahead to try to suppress this > warning in some cases I moved[^1] the warning to the point when we parsed a hyper and are making AST for it rather than just where we matched the potential end quoter. So now

[perl #131695] [LTA] Confusion in precedence with <<$foo>>[0]

2017-07-05 Thread Zoffix Znet via RT
On Tue, 04 Jul 2017 10:29:50 -0700, larry wrote: > While we could, in theory, do some lookahead to try to suppress this > warning in some cases I moved[^1] the warning to the point when we parsed a hyper and are making AST for it rather than just where we matched the potential end quoter. So now

[perl #131695] [LTA] Confusion in precedence with <<$foo>>[0]

2017-07-04 Thread Larry Wall via RT
We now warn on the ambiguity of >> or ยป when used where it could easily be intended as either a hyper or the quotewords terminator. While we could, in theory, do some lookahead to try to suppress this warning in some cases, it will be brittle in the face of languages that mutate the postfix spa