|
|
|
|
|
by jxf
4402 days ago
|
|
This entire post seems to conflate "weak typing" with "dynamic typing". Both are terms that seem to have a lot of common definitions, but they're nevertheless distinct. Weak typing usually implies a system where types get coerced easily: php -r "echo '4' + 4;"
8
Dynamic typing, though, generally means that the type is associated with runtime values. It doesn't mean that the typing is necessarily weak: ruby -e "'4' + 4"
-e:1:in `+': no implicit conversion of Fixnum into String (TypeError)
from -e:1:in `<main>'
|
|