Re: Don't be irritated by silly mistakes in draft #1
John Cowan 14 Sep 2015 02:02 UTC
Taylan Ulrich Bayırlı/Kammer scripsit:
> Fun-fact: GNU Emacs supports "key-and-value" as one of the hashtable
> weakness options, which implements the semantics of double-ephemeron aka
> ephemeral-key-and-value hashtables. It supports "key-or-value" weakness
> to mean the entry should be removed if either the key or value are
> deallocated, which is what you get from plain weak-key-and-value
> hashtables.
I've added the keys `ephemeral-key` and `ephemeral-value` to SRFI 125.
Of course, both can be used, and in fact you can specify a weak key
and an ephemeral value, though there is little point in doing so.
--
John Cowan http://www.ccil.org/~cowan xxxxxx@ccil.org
Deshil Holles eamus. Deshil Holles eamus. Deshil Holles eamus.
Send us, bright one, light one, Horhorn, quickening, and wombfruit. (3x)
Hoopsa, boyaboy, hoopsa! Hoopsa, boyaboy, hoopsa! Hoopsa, boyaboy, hoopsa!
--Joyce, Ulysses, "Oxen of the Sun"