Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2020-08-09 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (55 votes). Check out past polls.

    Notices?