ES4 draft: Function

Lars Hansen lhansen at adobe.com
Mon Mar 10 18:40:11 PDT 2008


> -----Original Message-----
> From: es4-discuss-bounces at mozilla.org 
> [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Lars Hansen
> Sent: 10. mars 2008 18:46
> To: Erik Arvidsson
> Cc: es4-discuss Discuss
> Subject: RE: ES4 draft: Function
> 
> > -----Original Message-----
> > From: Erik Arvidsson [mailto:erik.arvidsson at gmail.com]
> > Sent: 10. mars 2008 17:31
> > To: Lars Hansen
> > Cc: es4-discuss Discuss
> > Subject: Re: ES4 draft: Function
> > 
> > What is the reason to make the thisObj param to bind optional?
> 
> Symmetry with call and apply and a consequence of the 
> definition given in the proposals page (link below, it's near 
> the bottom).  But I agree that it seems misguided.  
> Will change this unless there's opposition to it.
> 
> http://wiki.ecmascript.org/doku.php?id=proposals:static_generics

But is null an acceptable non-default value for thisObj (meaning, use
the global object in the bind method's scope)?

--lars



More information about the Es4-discuss mailing list