Open v-i-s-h opened 5 years ago
Good point. While I agree with Box(0, 255, (1,), UInt8) != Box(0, 255, (1,), Int8)
, I'm not so sure about Box(0, 255, (1,), UInt8) != Box(0, 255, (1,), UInt16)
. I mean (and I may be completely wrong about this), a sample(Box(0, 255, (1,), UInt8)) in Box(0, 255, (1,), UInt16)
should always be true, and vice versa. That should make Box(0, 255, (1,), UInt8) == Box(0, 255, (1,), UInt16)
imo. But I'd defer to you and @tejank10, because I may be out of my depth here.
Box space with different datatypes are compared to be equal if range is same. MWE:
Maybe we should make
Box(0, 255, (1,), UInt8) != Box(0, 255, (1,), UInt16)
andBox(0, 255, (1,), UInt8) != Box(0, 255, (1,), Int8)
as the return data type may cause typeistability down the line.