Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Yet another JavaScript 'overload' function (written in LiveScript) (gist.github.com)
1 point by naturalethic on Feb 27, 2014 | hide | past | favorite | 1 comment


In javascript you would call this like:

    var myfunc = overload([
      { type: 'String', properties: 'Object', next: 'Function' },
      { type: 'String',                       next: 'Function' },
      function(type, properties, next) { ... }]);




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: