develooper Front page | perl.perl6.language | Postings from October 2006

Re: Motivation for /<alpha>+/ set Array not Match?

Thread Previous | Thread Next
From:
Audrey Tang
Date:
October 1, 2006 08:39
Subject:
Re: Motivation for /<alpha>+/ set Array not Match?
Message ID:
5B703534-461C-4BCC-971C-7CA21A6B4468@audreyt.org

在 Sep 28, 2006 3:03 AM 時,Carl Mäsak 寫到:

> Audrey (>):
>> Indeed... Though what I'm wondering is, is there a hidden  
>> implementation
>> cost or design cost of making /<foo>+/ always behave such that
>> $<foo>.from
>> returns something, compared to the current treatment with the  
>> workaround
>> you suggested?
>
> Has this been settled or addressed off-list?

'fraid not yet...

> Because from my perspective as one who has never used P6 rules for  
> anything
> in particular, but who in the future most likely will, the proposed
> semantics seems a lot saner and more useful. It'd be sad to let pass
> this opportunity to fix (what from my perspective appears to be) a
> shortcoming of the rule semantics.

*nod* The lack of .from/.to is merely an annoyance, but the spaced-out
stringification is really, really surprising with /<foo>+/.

Thanks,
Audrey
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About