Y
Hacker News
new
|
ask
|
show
|
jobs
by
willtim
2207 days ago
Most mainstream statically typed languages use subtyping, that is why they permit equality comparisons of different (sub) types. But they should and do obey all the usual mathematical laws, associativity, transitivity etc.