Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: poll ideas quest 2021

by haukex (Archbishop)
on Aug 17, 2021 at 14:31 UTC ( [id://11135903]=note: print w/replies, xml ) Need Help??


in reply to Re: poll ideas quest 2021
in thread poll ideas quest 2021

  • Smartmatch (as much as I want a switch, this feature unfortunately caused too much confusion)
  • The inability to perform a static parse of Perl (which affects prototypes, indirect object notation, any other heuristics like map{..., etc.).

Several things on the list I wouldn't call misfeatures at all (e.g. I love postfix if).

Replies are listed 'Best First'.
Re^3: poll ideas quest 2021
by eyepopslikeamosquito (Archbishop) on Aug 18, 2021 at 00:33 UTC

    Yes, strongly agree with your point about the impossibility of performing a static parse of Perl. Very annoying. Thankfully, this has been fixed in Raku.

    Years ago, I remember being in awe of adamk's tenacity in developing PPI after attending a few early talks at Sydney.pm -- sadly, that heroic effort may have burnt him out, at least he appears to have vanished from the Perl universe. And I almost fell off my chair when I first read about TheDamian's astonishing PPR regex wizardry. :)

    See also: Re: Perl script compressor by haukex - which mentions Guacamole.

      Guacamole

      I think it's noteworthy that the goal of that module is not to be able to parse all of Perl, just the subset of "standard Perl". So for example, it doesn't allow -bareword, stringy eval, unquoted hash keys on the left of the fat comma, and several more, but not because of technical limitations of the parser, but for policy reasons. I've suggested that the technical and policy based restrictions be disentangled to allow for easier porting of codebases to a parseable Perl, but I'm currently not sure when or if that might happen.

      Of course also noteworthy is RPerl, which I believe implements its own parser.

        unquoted hash keys on the left of the fat comma

        That will rule out a lot of the Perl I read and pretty much all of the Perl I write. If that's a policy restriction rather than a technical one then I am at a loss to understand the reasoning behind it.


        🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135903]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (9)
As of 2024-04-16 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found