Function length

Irakli Gozalishvili rfobic at gmail.com
Mon Jun 11 11:56:23 PDT 2012


Sorry for not being clear about this. Here is a simplified example of the implementation:
https://gist.github.com/2911817  

Also this is just a single particular example, but I expect there to be more. I think what I'm
really asking for is a way to know if …rest is being used.

Also IMO arrow functions should not have `arguments` at all.   
Regards
--
Irakli Gozalishvili
Web: http://www.jeditoolkit.com/


On Monday, 2012-06-11 at 11:04 , Allen Wirfs-Brock wrote:

>  
> On Jun 11, 2012, at 10:56 AM, Irakli Gozalishvili wrote:
> > > I don't think any library should ever rely on f.length.  
> >  
> > That's a wrong  attitude, there always will be legitimate uses of any feature, otherwise such features are just harmful & IMO should  be deprecated / removed.  
>  
> Let me try again.  We don't understand your use case.  You didn't show us the definition of your dispatch function so we have to guess.  Even so, It is hard to imagine a "legitimate" use with dynamically provided functions, particularly as the length values assigned to the existing built-ins don't follow strict rules. At the very least you need to help us understand why your use case is both reasonable and valid.
>  
> Allen
>  
>  
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120611/3c583e13/attachment.html>


More information about the es-discuss mailing list