4 ms·
Interesting point. I never considered whether duck typing was possible in a statically-typed language. I've always used it in concert with interpreted languages
by thedudemabry 14y ago
Interesting point. I never considered whether duck typing was possible in a statically-typed language. I've always used it in concert with interpreted languages. I imagine it could take a significant amount of pain away from systems programming (I'm looking at you, COM).
- micampe 14y agoit's usually called structural typing in more strongly typed languages like Go or Ocaml.