3 ms·
Every time I see Perl code like this, I think "That's awesome! I've forgotten how expressive Perl is. It would be fun to use Perl for my next project." Then a
by cbsks 7y ago
Every time I see Perl code like this, I think "That's awesome! I've forgotten how expressive Perl is. It would be fun to use Perl for my next project."
Then a few seconds later I snap out of it and realize that there is no way that I would ever be able to understand what "max :all, :by{.chars}, keys [∩] @strings».match(/.+/, :ex)».Str" does after a few months (or hours). The documentation for that single line would need to be nearly as the OP's blog post.
- redka 7y agoThe author explained it quite well, I'd say. @strings».match(/.+/, :ex)».Str This is actually quite straightforward after being referred as the vector method call (basically map) and the other stuff is just function/operator calls apart from maybe the :by{.chars} which I can assume what it's doing but only after seeing the implementation I can see that it's something like a named parameter with a lambda Reading these articles by Damian I almost get jealous of how expressive Perl 6 is.
- kerkeslager 7y ago> This is actually quite straightforward after being referred as the vector method call (basically map) and the other stuff is just function/operator calls apart from maybe the :by{.chars} which I can assume what it's doing but only after seeing the implementation I can see that it's something like a named parameter with a lambda This doesn't remotely explain what that line of code is doing.