3 ms·
It refers to https://en.m.wikipedia.org/wiki/Lattice_(order) https://en.m.wikipedia.org/wiki/Lattice_(order), with the elements of the lattice being the arithme
by layer8 5y ago
It refers to https://en.m.wikipedia.org/wiki/Lattice_(order) https://en.m.wikipedia.org/wiki/Lattice_(order), with the elements of the lattice being the arithmetic types and the order relation being the subtyping relation here. Given any two types in the lattice, the lattice property then guarantees that there exists a unique common (least) supertype (aka upper bound, supremum) of the two types. Which means you can apply the binary operation (e.g. addition) as defined for that common supertype.