No subject

Mon Apr 20 21:23:45 PDT 2009

then from within that function how would I call it?

function "my description here" () {
	"my description here"(foo)

That doesn't seem right, but maybe I'm overlooking something.

-----Original Message-----
From: es-discuss-bounces at [mailto:es-discuss-bounces at]
On Behalf Of P T Withington
Sent: Monday, May 04, 2009 12:45 PM
To: es-discuss
Subject: "Pretty" function expression names

Assuming we're allowed to speculate on futures here...

I was thinking about improving debug-ability by adding descriptive  
names to function expressions thusly,

   var myFun = function "my description here" (...) { ... };

I.e., be able to use an arbitrary string as the "name" of a function  
expression.  It seems to me this would be an unambiguous extension,  
only giving up an unlikely syntax error.  No runtime is required to do  
anything with the name, although it would be encouraged to make it  
available as the .name property of the function object.  Comments?
es-discuss mailing list
es-discuss at

More information about the es-discuss mailing list