3 ms·
> In contrast, a strong language would require explicit conversions and throw an error otherwise. That's not the definition the author is going with considerin
by Tade0 5y ago
> In contrast, a strong language would require explicit conversions and throw an error otherwise.
That's not the definition the author is going with considering that they're saying that Python (which requires explicit type conversions in most cases) is weakly typed.
From the replies here I'm seeing that there's no clear definition of "weakly" and "strongly" typed languages. I don't think it makes a lot of sense to use these terms.
- cygx 5y agoThat's not the definition the author is going with I think it is, given that he links to https://xkcd.com/1537/ https://xkcd.com/1537/ as stereotypical 'weak' behaviour. Python sits somewhere inbetween Javascript and Haskell: For example, Haskell does not allow adding floats and integers, which Python will happily do despite a potential loss of precision.