Enum identity Marc Nieper-Wißkirchen (15 Sep 2020 19:06 UTC)
Re: Enum identity John Cowan (15 Sep 2020 20:28 UTC)
Re: Enum identity Marc Nieper-Wißkirchen (15 Sep 2020 20:34 UTC)
Re: Enum identity John Cowan (15 Sep 2020 21:53 UTC)
Re: Enum identity Wolfgang Corcoran-Mathe (18 Sep 2020 17:12 UTC)

Enum identity Marc Nieper-Wißkirchen 15 Sep 2020 19:06 UTC

Could we make enums comparable with eq? Enum=? will then be a
(possibly) type-checking wrapper around eq?.

I haven't yet checked the sample implementation, but to me, it seems
to be implementable without much overhead.

This will make enums equally fast than symbols in many use cases and
will easily allow them as keys in hash tables.

Marc