4 ms·
> I’m genuinely curious, what features from other languages do you want to see in this implementation? In Java and C# you can override equals method in which y
by leosanchez 3y ago
> I’m genuinely curious, what features from other languages do you want to see in this implementation?
In Java and C# you can override equals method in which you specify which property to check equality on, (even python you can do that with __eq__ i think). In JavaScript you are left with either primitives or objects with references equality checks.
- samtho 3y agoThat’s fair, I would actually love to have a ‘Symbol.compare’ to implement so instances can be sorted and checked for equality.