You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Past discussion has so far led us to the conclusion that PPI does not have sufficient information to decide what the prototype of a function looks like.
And while perl parsing defaults to assuming it's a <> token, the problem here is that most code written will be functional and have a working prototype for the function call, and have < be the operator.
Thus i do not think the default choice of PPI can be changed, since it lacks the information to decide when the prototype is present to make the code functional.
this was created only as reminder of sometimes unexpected behaviour of Perl.
To be able to solve it there should be proper detection of fun0 first. I will try to do it first by postprocessing PPI document (with unknown timeline)
Test expression:
(issue mentioned some time ago on p5p IRC channel)
Implications: another example where Perl uses
FUN0
to parse code differentlyHow
PPI
parses it:How Perl parses it
Depends on prototype of
pi
:sub pi ();
<
as comparison operatorsub pi;
<
as opening token of<>
The text was updated successfully, but these errors were encountered: