Ducks, Rabbits, and Privacy

Kevin Reid kpreid at
Wed Jan 23 10:26:50 PST 2013

On Wed, Jan 23, 2013 at 9:45 AM, Kevin Reid <kpreid at> wrote:

> FYI, this is essentially identical to the 'Confidence' abstraction I
> developed for domado.js in Caja. Perhaps the choice could be further
> informed by looking at how it's worked out there.

Perhaps I should have included a link:

The idea is that 'Confidence' introduces a 'class with private fields' as
if in Java: each object which has a private state record is considered to
be an instance. The private record is used identically to Kevin Smith's
examples, but my analogue of getPrivate on a new object fails hard rather
than creating one — analogous to a ClassCastException.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list