Link Details

Link 52663 thumbnail
User 111696 avatar

By bloid
via ejohn.org
Published: Nov 13 2007 / 09:04

In a side project that I've been working on I built a quick-and-dirty function for doing simple method overloading. For those of you who aren't familiar with, it's just a way of mapping a single function call to multiple functions based upon the arguments they accept. Here's the function in question
  • 14
  • 1
  • 668
  • 193

Comments

Add your comment
User 238564 avatar

FlySwat replied ago:

0 votes Vote down Vote up Reply

You can implement overloading in a pure function basis and still use less code than registering his function handler to your function.

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.