Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
serve_yay
on March 24, 2015
|
parent
|
context
|
favorite
| on:
Myths of Enterprise Python
JS is strongly typed, not sure about PHP but I don't think so. lisp is not a language, it's a family of languages
pythonautical
on March 25, 2015
[–]
> [] + {}
"[object Object]"
> {} + []
0
JS and PHP are the prototypical examples of weak typing.
serve_yay
on March 28, 2015
|
parent
[–]
Again, not sure about PHP. But no, JS is strongly typed. What you've shown there is coercion, not type-punning or anything of the sort.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: