3 ms·
Side note, duck typing is not inherently slow. Some people assume since many duck-typed languages are slow that there is some causation going on. Go is way fas
by voidlogic 14y ago
Side note, duck typing is not inherently slow. Some people assume since many duck-typed languages are slow that there is some causation going on.
Go is way faster than Ruby and extensively uses duck typing everywhere (but is also statically typed and not interpreted-). My point is duck typing is not the reason Ruby is so slow.
- thedudemabry 14y agoInteresting 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.