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

Re: series operator issues

Thread Previous | Thread Next
From:
Moritz Lenz
Date:
July 23, 2010 03:25
Subject:
Re: series operator issues
Message ID:
4C496E27.8060703@faui2k3.org
Am 23.07.2010 00:29, schrieb Damian Conway:
> However, those *are* clunky and nigh unreadable, so I certainly wouldn't
> object to having the index of the next generated element readily
> available as an explicit variable in a series' generator block.
>
> That would make all manner of evil both easier and cleaner.>;-)

I'm still not convinced.

Yes, it would be convient, but I've yet to see a non-contrived example 
where it's actually necessary, and which can't be implemented trivially 
with other Perl 6 tools.

The series code is already rather complex (and thus slow), and having to 
add introspection to find out whether the production code object accepts 
a named parameter 'i' is not going to help in any way.

IMHO we are in the "what can we add?" phase, while we should be in the 
"what can we take away?" design phase.

Cheers,
Moritz

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