Message from JavaScript discussions

May 2017

— It can also be nothing, if you just want to use the keys/strings

— 

I think that should likely be 2 seperate classes due to the behavior... if you set no value, it will return undefined... however that is also the return value if the key was not found... so you could not tell if the key was in the set or not if it's value is undefined

— A weakMap would make sense there since you could decouple key search from values

— I don't think WeakMaps can be implemented

— Ie KeyStore class and a ValueStore class, both with discrete methods so there is a clear seperation, and then finally a Map class which combines them

Message permanent page

— I think the code could be easily extended to function that way

— After the main StringSet is working ofc

— Cart before horse etc...

— And then, the tuples of the string set can point to addresses in the value set, instead of using direct references which obfuscate what you are looking at

Message permanent page

— Adding iterable support and... uhhhh

— 

// Add Strings from the Iterable to the Set.
if (iterable !== null && iterable.__proto__.__proto__.hasOwnProperty("next")) {

this stinks to high heaven

Message permanent page

— Oh god, wtf