News for hackers. Stuff that matters.
Re:The Kobayashi Maru of comparing dates with times by Spivak on Saturday February 12, 2022 @06:59PM (#30317643)
All comparators are arbitrary, even among same-typed objects.

You can define a poset on the natural numbers ordered by divisibility that’s well defined and different from the usual < relation.

Pulling an example from maths, comparisons between integers and rationals are well defined despite them not being the same type. The obvious ordering uses the n <-> n/1 mapping but it doesn’t have to.

There are no comments on this comment yet.