develooper Front page | perl.perl6.language.data | Postings from September 2000

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
September 22, 2000 15:53
Subject:
Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices
Message ID:
20000922185354.A6776@monk.mps.ohio-state.edu
On Sat, Sep 23, 2000 at 09:52:51AM +1100, Jeremy Howard wrote:
> > > >   $x = 3 * @_;
> > > >
> > > > suddently being equivalent to
> > > >
> > > >   $x = @_;
> > > >
> > > > does not look very promising...
> 
> Why are these equivalent? RFC 82 only applies in list context. Am I missing
> something?

Yes, the proposal to make map 3*$_ semantic to work in a scalar
context too (to avoid cryptocontext).

Ilya

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