Re:Identity Types
by auggierose on Friday September 26, 2025 @08:22AM
(#45385680)
> Well, a green apple had better be equal to itself. So if you've got a green apple and another green apple that isn't equal to the first, you're already in trouble and going to have to resort to hacks like numbering them.
Nope, no trouble at all. Those troubles only exist in your type-infested mind.
> What if you want to manipulate it in a context where you only care about the number of apples, not their colour?
Then I'll do just that. Lol, you can't make this shit up.
Well, a green apple had better be equal to itself. So if you've got a green apple and another green apple that isn't equal to the first, you're already in trouble and going to have to resort to hacks like numbering them.
> No, the set is not equal to a set of 3 green apples and 1 red apple, under the assumption that a green apple cannot be a red apple (and vice versa).
What if you want to manipulate it in a context where you only care about the number of apples, not their colour?