Safe, Closure-free, Serializable functions

Bradley Meck bradley.meck at
Thu Sep 26 10:10:24 PDT 2013

I was merely stating my opinions on what it could be used for if such
things are guaranteed. D uses a keyword for compile time checking, which is
available for pure functions by their nature of not having side effects
outside of the this variable, arguments, and return value (all
modifications of which would need to be clearly defined, we don't want
shared state side effects).

On Thu, Sep 26, 2013 at 9:49 AM, David Bruant <bruant.d at> wrote:

> Le 26/09/2013 15:36, Bradley Meck a écrit :
>  The only really think of that would be of benefit is parallel execution.
> MongoDB MapReduce exploits parallelism as much as one can ever hope and
> just a string generated from
>     var f = '' + function(){...}
> seems to work just fine.
> (this actually wasn't true when SpiderMonkey was under the hood for
> technical reasons, but the design allowed parallelism and I think that now
> that they're using V8, they do exploit the parallelism)
> This has already been happening in the real world for several years with
> the language as it is. What would be the benefit of changing the language?
> David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list