develooper Front page | perl.perl6.language | Postings from June 2005

Re: reduce metaoperator on an empty list

Thread Previous | Thread Next
From:
Damian Conway
Date:
June 9, 2005 15:40
Subject:
Re: reduce metaoperator on an empty list
Message ID:
42A8C545.1040808@conway.org
Edward Cherlin wrote:

>>You haven't convinced me, but rather than flog a dead horse,
>>I'll just suggest that we both reserve the right to say "I
>>told you so" when there are several years' worth of Perl 6
>>code out there, and we see how common our respective examples
>>are.
>  
> No need to wait. There is a ton of APL and J code to inspect. 
> Having predefined identity elements for reductions on empty 
> arrays is widely exploited. 

I would be more convinced by this body of experience if I felt that the wide 
exploitation of implicit identity elements actually helped improve the 
predictability and maintainability of programs written in those languages, 
neither of which is renowned for its accessibility to ordinary programmers. ;-)

Damian

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