|
|
|
|
|
by tantalor
1270 days ago
|
|
> special CoordSet that wraps a regular Set, encoding objects into integers... we don’t need to implement decoding the integers and reifying the Coord objects Wouldn't it be much simpler to just keep a set of hashes? That's basically what this is. |
|
The attraction of the CoordSet is that it behaves as if it is storing actual objects, but is actually saving memory. So the abstraction hides the optimization, which makes it easier to reason about the rest of the program.