Whether this unit is compatible with other.
other
bool isCompatible(Unit<D> other) => dim.isCompatible(other.dim);