develooper Front page | perl.perl6.language | Postings from July 2010

Re: Suggested magic for "a" .. "b"

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
July 29, 2010 05:15
Subject:
Re: Suggested magic for "a" .. "b"
Message ID:
AANLkTikuo1gRK6GhiLjptDM_aZZcmpZqzQuS7hjNXBT_@mail.gmail.com
On Thu, Jul 29, 2010 at 3:24 AM, Darren Duncan <darren@darrenduncan.net> wrote:
> Some possible examples of customization:
>
>  $foo ~~ $a..$b :QuuxNationality  # just affects this one test

I like that

>  $bar = 'hello' :QuuxNationality  # applies anywhere the Str value is used
>

What if you compare a QuuxNationality Str with a FooNationality Str?
That should blow up. Also it can lead to action at a distance. I don't
think that's the way to go.

Leon

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