in reply to Re: No questions. Just a "thank you for named captures" !!
in thread No questions. Just a "thank you for named captures" !!

Python also had named captures before Perl, but why does it matter who had it first? Or do you mean It's a shame that Perl did not support them sooner than it did?


Comment on Re^2: No questions. Just a "thank you for named captures" !!
Re^3: No questions. Just a "thank you for named captures" !!
by sedusedan (Monk) on Feb 07, 2013 at 16:42 UTC
    Perhaps shame is too strong a word. How about 'it would be cool if Perl came up with named capture instead of other languages, remembering that Perl was/is kind of the state-of-the-art for regex stuffs.'
Re^3: No questions. Just a "thank you for named captures" !!
by tobyink (Abbot) on Feb 07, 2013 at 16:54 UTC

    Strangely PCRE (the Perl Compatible Regular Expression engine) also added support for named captures several years before Perl.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name