oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
4 stars 1 forks source link

FiniteInteger(s) #10

Closed oscbyspro closed 4 weeks ago

oscbyspro commented 1 month ago

I'm trying to figure out the best way to recover from infinite arguments passed to the greatest common divisor BinaryInteger/euclidean(_:) methods. I then realized that I was missing a finite integer protocol representing the union of systems integer types and arbitrary signed integer types. I'm not sure that is the most appropriate solution to this problem, but it may solve other problems.

oscbyspro commented 1 month ago

Some lacking foresight on my part w.r.t. the naming of things. Maybe I should call these types NaturalInteger(s) instead. Edit: natural numbers are non-negative. I need a vacation. So, what about CountableInteger(s)? Or FiniteInteger(s), again?

oscbyspro commented 1 month ago

This would basically be the mirror image of EdgyInteger.