3 ms·
Take PHP or Python's standard library. Both are built around types, yet this is legal: $foo = "hello, world!"; $foo = 12; When you use a string-related
by barsonme 11y ago
Take PHP or Python's standard library. Both are built around types, yet this is legal:
$foo = "hello, world!";
$foo = 12;
When you use a string-related function in Python, you expect the parameters to be strings, yet there's no type-safety enforced until runtime.
- dllthomas 11y agoThis is legal in Haskell: let foo = "hello, world" in let foo = 12 in foo Whether bindings can be shadowed has nothing to do with whether typing is static or dynamic.