Mutable slots/indirect value API

2013-11-03 Thread James Burke
With the import/export mutable slots concept, does it make sense to allow an API that has expresses that type of concept? I think it would allow creating a module-function thunk that would allow robust cycles as mentioned here:

Re: Mutable slots/indirect value API

2013-11-03 Thread David Herman
IOW expose the first-class reference type of ECMA-262 via a standard library? Just say no! :) First, the module function API is written up wrong on the wiki; the function won't take any arguments at all. My apologies, I discovered my mistake as I was working on the spec writeup in the last few

Re: Mutable slots/indirect value API

2013-11-03 Thread James Burke
On Sun, Nov 3, 2013 at 12:34 PM, David Herman dher...@mozilla.com wrote: IOW expose the first-class reference type of ECMA-262 via a standard library? Just say no! :) I was thinking that if they were used anyway by the module system, formalizing them might help, the provide the primitives sort