Closed xsawyerx closed 4 years ago
Keep in mind that it takes work to make a grammar parse your language, and it takes a lot more work to make a grammar parse only your language.
Closures and callbacks are pretty common, how else you would invoke them?
I'm not sure I follow all the comments.
@vickenty, can you give ma an example of using ArrowIndirectCall
that is not an indirect object notation?
Sorry, I got confused. I thought it was parsing $foo->()
. Actually ArrowIndirectCall
covers code like $foo->$bar(...)
. Still, I think indirect object notation is different (new Pkg(...)
).
In the case of $foo->$bar
, ArrowIndirectCall
makes sense.
Indirect object (or method) notation shouldn't be supported.
Closing the ticket as it was my misunderstanding.
Seems like we're able to parse indirect notation using
ArrowIndirectCall
. I suggest we remove it.