Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Zak
on May 27, 2011
|
parent
|
context
|
favorite
| on:
These are things in PHP which make me sad
I think the reason people object to this behavior, even when they do understand it is that it makes the obvious default (==) dangerous. It's especially dangerous in the hands of the sort of non-experts for whom it's intended to make life easier.
wvenable
on May 27, 2011
[–]
== really isn't that dangerous unless you use it dangerously. Comparing non-numeric strings to numbers is already odd.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: