|
|
|
|
|
by pmontra
2245 days ago
|
|
Python (and Ruby) are dynamically typed and strong typed. They are two different things. Strong typed doesn't mean that you can't do this a = "a"
a = 1
That's dynamic typing. Strong typing means only that a = "a" + 1
fails.More about that at
https://en.hexlet.io/courses/intro_to_programming/lessons/ty... JavaScript and PHP and Perl automatically cast to a reasonable value with all the advantages and pitfalls. |
|
> a = "a" + 1
>fails.
String a = "a" + 1; works in Java. So Java is not strongly typed?