4 ms·
The fact that one is checked statically and the other is only enforced at runtime is a significant different between them, since the static approach will reject
by lkitching 7y ago
The fact that one is checked statically and the other is only enforced at runtime is a significant different between them, since the static approach will reject some programs that are dynamically safe. The term duck typing when employed by dynamic languages like Ruby is misleading since it's a consequence of not having a type system at all.