Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: irritation makes perls

by chromatic (Archbishop)
on Sep 25, 2009 at 02:01 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found