top | item 46335765

(no title)

ioanaci | 2 months ago

I also feel like map[T]struct{} communicates its purpose way better than map[T]bool. When I see a bool I expect it to represent a bit of information, I don't see why using it as a placeholder for "nothing" would be more readable than a type that can literally store nothing.

discuss

order

No comments yet.