Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: What is true and false in Perl?

by ikegami (Pope)
on Sep 15, 2009 at 18:10 UTC ( #795442=note: print w/replies, xml ) Need Help??

in reply to Re: What is true and false in Perl?
in thread What is true and false in Perl?

"0" is not boolean, and neither is "",

Noone said they are. It was said they are false.

Providing such a 'feature' comes with a very significant readability and maintainability cost that is simply not justified.

That's odd. Perl, Python, PHP, C, C++, JavaScript, VB and the 5 or 6 CPU I know work that way. The only language I know that doesn't is Java.

Replies are listed 'Best First'.
Re^3: What is true and false in Perl?
by Anonymous Monk on Jan 31, 2012 at 17:33 UTC
    Also LISP.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2016-10-22 16:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.