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

Re: reduce metaoperator

Thread Previous | Thread Next
From:
Larry Wall
Date:
May 4, 2005 06:10
Subject:
Re: reduce metaoperator
Message ID:
20050504131018.GD2741@wall.org
On Wed, May 04, 2005 at 08:59:04AM -0400, Rob Kinyon wrote:
: This may be a naive question, but what's wrong with just having a
: keyword called reduce()? Why do we need an operator for everything?

Because it's an operator/macro in any event, with weird unary or
listop parsing:

    reduce(+) @array

Larry

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