ES4 draft: Function

Jon Zeppieri jaz at bu.edu
Mon Mar 10 19:50:05 PDT 2008


On 3/10/08, Erik Arvidsson <erik.arvidsson at gmail.com> wrote:
> There are valid use cases for new Function (...) and Function(...).
>  One that comes to mind is getting an attribute in DOM and make it into
>  an event handler.  Yes, the Function constructor and meta::invoke can
>  be replaced by eval but Function needs to be there for ES3
>  compatibility.

...which is why I wrote "deprecate," rather than "remove."  In other
words, I'm suggesting treating the Function constructor the way we're
treating Function.arguments.



More information about the Es4-discuss mailing list