develooper Front page | perl.perl6.language | Postings from August 2006

Re: === and array-refs

Thread Previous | Thread Next
From:
Andrew Suffield
Date:
August 17, 2006 17:32
Subject:
Re: === and array-refs
Message ID:
20060818003153.GA21523@suffields.me.uk
On Thu, Aug 17, 2006 at 12:00:17AM -0700, Darren Duncan wrote:
> As a lead-in, I should say that Synopsis 3 has a good and complete 
> explanation of these matters and has had it for several weeks, in my 
> opinion.
> 
> Since you are wanting to compare two mutable Array, just use the eqv 
> operator, which will do everything you want in a terse and easy to 
> understand manner.

I'd just like to point out that S03 is back-arsewards here - it
explains === first, and then explains eqv in terms of ===. Since eqv
is the familiar thing people will want most of the time, and === is
the weird thing that isn't used very often, it would make far more
sense to explain them the other way around (and probably confuse less
people). Understanding === should not be a prerequisite for
understanding eqv.

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