Open oscbyspro opened 1 year ago
The asymmetry of (#34) is an argument in favor of adding a duplicate requirement to NBKSignedInteger. Hm.
I suppose it's unclear what size this would give a manually resizable integer. Hm.
An alternative is committing to fixed-width by moving init(bit:)
to NBKFixedWidthInteger. The rationale being that heap allocating a single bit is almost never what you intend to do.
I think
init(repeating:)
should be moved to NBKBinaryInteger so it becomes available to IntXL, and UIntXL could reasonably trap oninit(repeating: true)
. I suppose that adding a duplicate requirement to NBKSignedInteger is an alternative, but I don't find that as elegant.