Re:Rust Weird Expressions
by iudqnolq on Tuesday May 18, 2021 @11:42AM
(#27196176)
I find it beautiful that HashSet<T> in Rust is a thin wrapper around HashMap<T, ()>. I'm glad it's a wrapper, though. I wouldn't like it if everyone had to write `HashMap<u16, ()>` and so on and know which methods still made sense.
[ Parent
| on HN ]
There are no comments on this comment yet.