Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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.


Comment on Re^2: What is true and false in Perl?
Re^3: What is true and false in Perl?
by Anonymous Monk on Jan 31, 2012 at 17:33 UTC
    Also LISP.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-07-30 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls