Link Details

Link 94344 thumbnail
User 220703 avatar

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)."
  • 1
  • 0
  • 155
  • 16

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)