Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

'false' still equals 0.


wtf?

You can't say PHP is as pretty as scheme when ("false"==0) evaluates to true. It just can't happen.

And if you think I'm some lisp dude slagging PHP, I wrote a PHP framework and work with the garbage everyday.

http://getheavy.info/


I believe your criticism is equivalent to the old "macs only have one mouse button" argument. Sure, false==0 and "false"==0 both evaluate to true, but is that really a bad thing? It is well known and well documented behavior. I would even argue that this is an important feature of PHP. And if you want strict comparison, there's still the === operator, just like in JavaScript.


I think you're getting downvoted because your comment was irrelevant to the topic of lambdas and recursion. Your second comment uses a technique that I will call "ad hominem defense" from now on; upvoted for making me think of this amusing expression.


The title says PHP as sexy as Scheme.

It's like comparing McDonald's to a Gordon Ramsay restaurant.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: