In javascript you can't know how many arguments a callback takes. Only how many arguments were passed to a function.
On Wed, Aug 22, 2012 at 11:30 PM, Stewart Mckinney <[email protected]>wrote: > Why not just decorate fs.exists with arguments.caller.length and call it a > day? It seems like there are arguments on both sides here to accept the new > standard and the old tradition. Eventually phasing out the old tradition > has to happen ( especially since you know, not 1.0 or anything here ), but > i'm just curious if there's any resistance to that interim solution right > now. Seems like that could work, and polymorphism is not necessarily a > forsaken tradition in programming. > > Also, > > > Why does GMail think that polymorphism is not a word? Seriously? > > On Wed, Aug 22, 2012 at 6:45 PM, Scott González > <[email protected]>wrote: > >> On Wed, Aug 22, 2012 at 6:34 PM, Dan Milon <[email protected]> wrote: >> >>> Isaac, i am curious why you believe fs.exists should stay as is. >> >> >> https://groups.google.com/forum/#!msg/nodejs/oqlT9ZtUZd0/XicWJx6mC4oJ >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
