[Webkit-unassigned] [Bug 205449] Allow Vectors as hash keys

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 19 12:31:02 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=205449

--- Comment #14 from Antti Koivisto <koivisto at iki.fi> ---
> Why introduce this footgun? We already know from experience people want to
> put nullptr, zero, etc, in hash tables as keys. I don't see why we wouldn't
> also want an empty vector. I don't understand why having a well-defined
> "empty" is any more important than a well defined "deleted" value? If we're
> introducing something new, we might as well introduce it without the footgun.

Patches welcome. 

Deleted value is just some unique bits written to a hash table slot. The templates appear to expect empty value to be movable and destructible. It is not immediately obvious to me how to do without complicating Vector disproportionally.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191219/d1dee27f/attachment.htm>


More information about the webkit-unassigned mailing list