News for hackers. Stuff that matters.
Re:"DCI" in Ruby is completely broken by voidlogic on Wednesday January 02, 2013 @06:46PM (#5000109)
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.

Re:"DCI" in Ruby is completely broken by thedudemabry on Thursday January 03, 2013 @02:00AM (#5001310)
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).
Re:"DCI" in Ruby is completely broken by micampe on Thursday January 03, 2013 @08:54AM (#5002313)
it's usually called structural typing in more strongly typed languages like Go or Ocaml.