Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: irritation makes perls

by chromatic (Archbishop)
on Sep 25, 2009 at 02:01 UTC ( #797366=note: print w/replies, xml ) Need Help??

in reply to irritation makes perls

Yet there are a few aspects of Perl which annoy me to no end. Such as the fact that there are two sets of comparison operators.

You'd like the language much, much less if there were only one set of comparison operators. Perl would have to guess about which type of comparison you meant, and the heuristics for guessing rely on a lot of potential scary action at a distance. These bugs happen occasionally (I can think of one I've seen in the past decade), but they'd be much, much more common if you couldn't specify your intent for a comparison.

Replies are listed 'Best First'.
Re^2: irritation makes perls
by xyzzy (Pilgrim) on Sep 25, 2009 at 19:57 UTC
    I don't deny that a language needs to be able to differentiate between numeric and string comparisons, but it's a hard habit to break coming from other languages. Like remembering how to spell elsif.

    "Everything is true." "Even false things?" "Even false things are true" "How can that be?" "I dunno man, I didn't do it."

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-09-19 21:07 GMT
Find Nodes?
    Voting Booth?

    No recent polls found