Comment by librasteve

1 year ago

err, no

the perl6 guys ended up inventing the new perl (now renamed raku)

https://rakujourney.wordpress.com/2024/10/12/raku-burritos/

the first perl6 parser (pugs) was written in Haskell btw

I'm aware. I was using the world pejoratively. Combinator style degrades into line noise.

  • no doubt its fashionable to think "perl == line noise == bad"

    however, there are certain sub languages (slangs) where the use of punctuation chars as operators is very helpful, of course regex is the most compelling where the code is parsing one char at a time

      my regex url {
        ^                                # Start of line
        [<http> s? '://']                # Match http or https
        ['www.' ]?                       # Optional www.
        [<[\w\-]>+ '.' ]+                # One or more domain segments
        <[a..z]> ** 2..6                 # TLD, 2 to 6 lowercase letters
        [ '/' <[\w\-./?%&=]>* ]?         # Optional path/query
        $                                # End of line
      }
    

    imo raku has improved the situation a lot by introducing "regex 2.0" with deep support for unicode and with built in grammars that can work smoothly with regex