Hacker News new | ask | show | jobs
by LeafyGreenbriar 4527 days ago
Duck typing in dynamic languages can allow you to do some pretty cool things.
2 comments

The request was for some examples of the claim. You just repeated the claim.
Compared to Java? No question. Compared to Scala with its implicits and associated patterns? I've yet to see a case I couldn't handle in Scala.
An in place and efficient quick sort? :)
Ha! Fair enough, though I was thinking something different in two ways. Namely, something that worked on the common collections used by people and more readable than this. Still, bad example.
That doesn't make sense. The whole point of quicksort's algorithm is to do things in place, which requires fast indexed access and mutability.

Common collections lack both of these things.