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

Re: === and array-refs

Thread Previous | Thread Next
Markus Laire
August 17, 2006 04:49
Re: === and array-refs
Message ID:
On 8/17/06, Darren Duncan <> wrote:
> Generally speaking, the direct use of === is more for specialized
> purposes, somewhat like the direct use of =:= is.  If one can't tell
> the difference between === and eqv, they most likely want snapshot
> semantics anyway, and so might as well forget === exists, and just
> use eqv everywhere.

For me === feels like it should be the operator with "easier"
semantics, i.e. the operator which perl-newbies would first want to
learn, so it feels like the semantics of === and eqv should be

=== is a lot nearer to what many other languages uses for they
comparison than more cryptic eqv.

Also, == does "simpler" comparison than eq, so I feel that === should
also do "simpler" (to understand) comparison than eqv

Markus Laire

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About