xsawyerx / guacamole

Guacamole is a parser toolkit for Standard Perl. It provides fully static BNF-based parsing capability to a reasonable subset of Perl.
https://metacpan.org/pod/Guacamole
20 stars 8 forks source link

Pragma to remove dynamic receiver lookups #86

Closed vickenty closed 1 year ago

vickenty commented 4 years ago

Removes guesswork out of interpreting 'Foo->bar()', makes 'Foo' always to refer to a package.

xsawyerx commented 4 years ago

We could have this used in standard.pm.

xsawyerx commented 4 years ago
  1. Why is this called "NoPit"?
  2. I want to bring this into standard.pm so it could be used there when it's loaded.

The problem with adding it to standard.pm is that it now moves all of Guacamole to 5.22 minimum, which is "only" 5 years ago. Maybe we should make this into standard::safe or standard::safer or some better name?

vickenty commented 4 years ago

There is no reason to the name, feel free to rename as appropriate.

The code is just a proof of concept. I'm pretty sure it gets some cases wrong. It shouldn't be shipped without much more testing at the very least.