"Pretty" function expression names

Laurens Holst laurens.nospam at grauw.nl
Sun May 10 14:25:53 PDT 2009

Laurens Holst schreef:
> Brendan Eich schreef:
>> http://wiki.ecmascript.org/doku.php?id=strawman:name_property_of_functions 
>> I did not reproduce all the details from the thread, but I tried to 
>> capture the essential points. Please point out omissions and errors. 
>> Thanks, 
> What I’m missing about Function.name is that you can only specify it 
> using function literals (at least, currently in Firefox I think that 
> is the case). It would be nice if you could also either set this with 
> either the Function constructor, or after the object has been created. 

Ah, I see this part is already covered by Maciej’s Function.create 
semi-constructor proposal. In that case, should make sure this 
Function.create also supports passing closures so that we won’t need a 
Function.create2 :). Maybe make the params parameter list an array so 
that create is less dependant on the length of the arguments passed and 
more extensible.


Note: New email address! Please update your address book.

~~ Ushiko-san! Kimi wa doushite, Ushiko-san nan da!! ~~
Laurens Holst, student, Utrecht University, the Netherlands
Website: www.grauw.nl. Backbase employee; www.backbase.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: laurens_nospam.vcf
Type: text/x-vcard
Size: 111 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20090510/e6e26f1a/attachment.vcf>

More information about the es-discuss mailing list