Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: my least favorite perl feature

by Abigail-II (Bishop)
on Feb 05, 2003 at 23:32 UTC ( #232980=note: print w/replies, xml ) Need Help??


in reply to Re: Re: my least favorite perl feature
in thread my least favorite perl feature

Well, the question "when are two arrays the same" has never been answered in a way all people could agree on.

Personally, I find the current behaviour of

if (@array1 == @array2)
very useful. I wouldn't want to miss it.

Furthermore, you'd have a hard time convincing me that you need to do less work for redefining an operator than for defining a function. Why not create a function that compares two arrays?

Lastly, perl6 will have a supermatching operator. It will do all kinds of different things, depending on the types of its operands. Perhaps your idea of comparing arrays is one of the possible options.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://232980]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-03-04 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (98 votes). Check out past polls.

    Notices?