Closed oscbyspro closed 2 weeks ago
The nil case would be IXL(clamping: UXL.max), or similar, in the most generic context.
One nice thing about this is that I can just add init(clamping:) to Test.exactly(_:_:).
Looks like I8(clamping: UXL.max) returns nil. Gotta fix that too. Zzz.
The most generic init(clamping:) also needs to be a disfavored overload, it seems.
EdgyInteger is an unusual constraint so it might be nice to add init(clamping:):
I have only thought about if briefly, but the above cases should be derivable.