By automatthew
via blog.lawrencepit.com
Submitted: Jul 11 2008 / 17:11
"The beauty of Functor however is that it allows more than just method overloading. Method overloading matches on the class of it’s arguments. In contrast, Functor matches the arguments first by trying the === operator, then the == operator and if that didn’t match it will try using call if you provided a lambda or a Proc (or anything really that responds to :call)."
Add your comment