Oscar Byström Ericsson

Results 75 comments of Oscar Byström Ericsson

Making Signed\ super light-weight, with no 2's complement and no fixed-width, is also an option. --- More on this: I could introduce a non-binary NBKInteger protocol, that's like Swift.Numeric +...

I do love the light-weight approach. It's a high-value-low-maintenance coffee break project.

I would need some composable magnitude text conversion methods, but that's easy to add.

I'll need to make some changes, but it seems viable. I like it because it doesn't try to be something it is not, meaning it plays to its strengths and...

~~I just realized something neat. Since these modules all live within the same package, I can use `#if canImport` without adding any target dependencies.~~ Edit: never-mind, I was fooled by...

> I would need some composable magnitude text conversion methods, but that's easy to add. Sign & magnitude encoding can be exposed in TextKit (#86), so I won't need another...

Conforming this model to `Strideable` is a bit of a headache at the moment, so if that's desirable I might have to add some constraints. All core integers use `Int`...

Hm. I kind of feel like this is teetering on the edge of over-engineering. Maybe I'll add a concrete sign-magnitude model to NBKFlexibleWidthKit and drop NBKSigned\. Dunno, I'll decide when...

There's only two interesting specializations of it: UInt and UIntXL.