@@new

Andreas Rossberg rossberg at google.com
Wed Jun 18 03:41:31 PDT 2014


On 18 June 2014 09:40, Dmitry Soshnikov <dmitry.soshnikov at gmail.com> wrote:
> On Tue, Jun 17, 2014 at 12:21 PM, Jason Orendorff
> <jason.orendorff at gmail.com> wrote:
>> ## Benefits
>>
>> *   As with Allen's proposal, we would drop [[Construct]] and the
>> `construct`
>>     trap.
>>
>> *   @@create can be dropped entirely, but we retain the benefit to
>> implementers
>>     that all Maps (for example) can have the same in-memory layout, and
>> other
>>     objects can't become Maps at runtime.
>
> These are pure implementation details, and only implementation improvements,
> that are not that interesting to actual developers.

The main part of this point is getting rid of @@create, which is far
more than an implementation detail. If we can actually pull this off
-- in particular, getting rid of the ability to observe
half-constructed objects -- then I'd +100 it. It's still worth trying,
but as David points out, it's not so easy.

/Andreas


More information about the es-discuss mailing list