Hacker News new | ask | show | jobs
by EugeneOZ 3323 days ago
Dynamic languages can convert types in runtime (so 1 + "f" = "1f") and not so many languages (not only dynamic) cares about mutability.
3 comments

Supporting an addition operator that accepts mixed type operands has no relationship to being dynamically typed.
From quick check, it looks like Java can do this coercion, and it's not dynamically typed.
This is weak typing not dynamic typing.

1 + f in modern Python results in a ValueError.