> Using empty structs also hurts readability
An empty struct is idiomatic and expected to be used in a Set type. When/if the memory optimization is reintroduced, no code change will be needed to take advantage of it.
An empty struct is idiomatic and expected to be used in a Set type. When/if the memory optimization is reintroduced, no code change will be needed to take advantage of it.
I would argue using bool hurts readability more.
Even better write/use a simple library that calls things that are sets `Set`.
edit: I may be wrong here