Brendan Eich (2013-07-31T15:36:37.000Z)
Erik Arvidsson wrote:
> On Wed, Jul 31, 2013 at 10:38 AM, Mark S. Miller<erights at google.com>  wrote:
>>>> Only useful for instance-private instance variables, in which case you
>>>> may as well use lexically captured per-instance state.
>>> Also useful for methods where different subclasses needs to specialize the
>>> behavior.
>>>
>>> We've tripped on the method use case before. Let's not repeat that
>>> mistake.
>> Hi Erik, I'm missing your point. Could you give an example? Thanks.
>
> I was thinking private unique symbols. I see now that I misunderstood
> what Brendan wrote.
>
> Brendan, could you expand those ellipses in your example?

I was thinking the same thing and fell into the "unique scope-confined" 
trap. I agree it's too easy to leak non-private symbols via reflection, 
but it wasn't clear Mark was making that point (closure-pattern didn't 
seem relevant, still doesn't...).

/be
domenic at domenicdenicola.com (2013-08-02T20:45:50.168Z)
Erik Arvidsson wrote:
> Brendan, could you expand those ellipses in your example?

I was thinking the same thing and fell into the "unique scope-confined" 
trap. I agree it's too easy to leak non-private symbols via reflection, 
but it wasn't clear Mark was making that point (closure-pattern didn't 
seem relevant, still doesn't...).