Hi Denis,

On Fri, Jun 2, 2017 at 2:20 AM, Denis Kudriashov <[email protected]>
wrote:

> Hi.
>
> I just found that there is no WeakIdentityValueDictionary. But we have
> WeakValueDictionary, WeakKeyDictionary,  WeakIdentityKeyDictionary.
>
> And to implement missing class I need to copy overrides from
> IdentityDictionary. And weak key dictionaries are implemented same way by
> duplicating code.
>
> And generally identity collections are not much different from equal
> collections but they still duplicate a lot of code with little difference:
> #hash or #identityHash, #= or #==.
>
> So I am wondering do we have alternative implementation with proper design?
>

The StrongTalk team reimplemented their Collections hierarchy to have much
better modularity because their VM did the necessary inlining to create the
efficient versions on the fly.  This is what Scorch/Sista supports.
Perhaps we should wait until it arrives, perhaps not, but certainly what
you propose is a good idea whose time has almost come.


> There are wishes to replace streams by XSteams. What about collections?
>
> Best regards,
> Denis
>



-- 
_,,,^..^,,,_
best, Eliot

Reply via email to