develooper Front page | perl.perl6.language | Postings from December 2004

Re: pull & put (Was: Angle quotes and pointy brackets)

Thread Previous | Thread Next
From:
Dan Brian
Date:
December 5, 2004 19:51
Subject:
Re: pull & put (Was: Angle quotes and pointy brackets)
Message ID:
2040141A-473A-11D9-91B9-000A95C5DDF6@brians.org
> It makes good sense to me -- if we're trying to move a piano from you 
> to
> me then either you can push or your end or I can pull on my end: we're
> operating on different ends of it, but the effect in both cases is
> moving in one direction.

As a mnemonic for remembering which side push/pull operate on, I agree. 
(A stalled car etc.) It would be nice if the corresponding functions 
could similarly be opposed without the potential confusion for 
beginners, but I realize that may not be possible, and your example is 
at least convincing that it's better than shift/unshift.


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