Re: A proposal to modify `None` so that it hashes to a constant
Matthias Görgens <[email protected]> Tue, 29 Nov 2022 09:32:13 +0800
| Newsgroups | gmane.comp.python.devel |
|---|---|
| Message-ID | <CA+X7ob9QSf6pK1W3gYdxx5wfs-nXYwJbsWOkotycgwm8db07aw@mail.gmail.com> |
For what it's worth, as a user of the language I would like sets to behave as much as possible as-if they were basically dicts that map all elements to `()`. That way I'd have to keep one less mental model in my head. I deliberately say 'as-if' because when I'm a user of the language, I don't care how it's implemented. (Just like I don't have to care as a user that we have (at least) two different ways dicts are represented internally.)