New private names proposal
allen at wirfs-brock.com
Tue Dec 21 20:17:05 PST 2010
On Dec 21, 2010, at 2:12 PM, Brendan Eich wrote:
> I also see the ocap purity of soft fields, and I like Mark's AST-decorated-sparsely soft fields use-case. But we already have weak maps in harmony:proposals, so one can write such code now, just at some loss of convenience: without square brackets or (even better) dots for convenient soft-field access expressions.
(I'm not sure where Mark's original AST use case is, or I would have also quoted it.)
To me, this use case sounds like a form of aspect oriented programming. I'm not at all sure that AOP support is something we want to add as an additional requirement to our designs. As Brendan points out, if you really want to do this, you can use weak maps whose inclusion I strongly support for exactly this sort of use case.
More information about the es-discuss