ES4 draft: Name
maian330 at gmail.com
Wed Mar 5 21:54:43 PST 2008
Lars Hansen wrote:
> Name (a, b=…)
> The |Name| class object called as a function creates a new |Name|
> object by passing its arguments /a/ and /b/ to the |Name| constructor.
> The |Name| class object called as a function returns a |Name| object.
> static meta function invoke(a, b=undefined): Name
> new Name(a, b);
If a is already a Name, shouldn't Name(a) simply return a? Not sure what
the policy on this is, but if you've changed Map to work similarly, then
I don't see why not here as well.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Es4-discuss