Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous 0.12.0 stuff #131

Open
oscbyspro opened this issue Nov 14, 2024 · 3 comments
Open

Miscellaneous 0.12.0 stuff #131

oscbyspro opened this issue Nov 14, 2024 · 3 comments
Labels
addition oh, so shiny! subtraction huh? where did it go?

Comments

@oscbyspro
Copy link
Owner

I'll use this thread to document various minor changes.

@oscbyspro oscbyspro added this to the Ultimathnum 0.12.0 milestone Nov 14, 2024
@oscbyspro oscbyspro added addition oh, so shiny! subtraction huh? where did it go? labels Nov 15, 2024
oscbyspro added a commit that referenced this issue Nov 15, 2024
Using coder/format reads better than as coder/format.
@oscbyspro
Copy link
Owner Author

oscbyspro commented Nov 15, 2024

I updated the signature of the binary integer description methods for improved readability:

old: BinaryInteger.init(_:as:)
new: BinaryInteger.init(_:using:)
old: BinaryInteger/description(as:)
new: BinaryInteger/description(using:)

The most natural TextInt nouns are "format" and "coder" so "using" is more appropriate.

@oscbyspro
Copy link
Owner Author

Bit, Order, Sign and Signedness are BitCastable<Bit.BitPattern>. I'll add a default init() matching 0.

Bit()        -> Bit.zero
Order()      -> Order.ascending
Sign()       -> Sign.plus
Signedness() -> Signedness.unsigned

oscbyspro added a commit that referenced this issue Nov 16, 2024
These types are all `BitCastable<Bit.BitPattern>` and their default initializers match `Bit.zero`.
@oscbyspro
Copy link
Owner Author

oscbyspro commented Nov 23, 2024

The Base in DoubleInt<Base> made DoubleInt.Stdlib.Base ambiguous, so I've changed it to High.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition oh, so shiny! subtraction huh? where did it go?
Projects
None yet
Development

No branches or pull requests

1 participant