You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java has BigInteger (Which is what Kotlin uses too).
Python supports arbitrary sized integers out of the box.
Rust used to have BigInt in the standard library but they split it off into a separate crate apparently: BigInt
So there are obvious targets for what we could map this type to in each language.
And the implementations to encode/decode these would be trivial to write. It's just bytes and bit-shifts.
Such a data type has obvious utility, and is general-purpose enough to be useful for a variety of situations.
I think these make it a good candidate for a WellKnownType expressed as custom BigInteger in Slice.
The text was updated successfully, but these errors were encountered:
I propose adding support for signed integers of arbitrary size!
The vast majority of languages I know of support them either at the language level or often with a standard library type:
BigInt
in the standard library but they split it off into a separate crate apparently: BigIntSo there are obvious targets for what we could map this type to in each language.
And the implementations to encode/decode these would be trivial to write. It's just bytes and bit-shifts.
Such a data type has obvious utility, and is general-purpose enough to be useful for a variety of situations.
I think these make it a good candidate for a
WellKnownType
expressed ascustom BigInteger
in Slice.The text was updated successfully, but these errors were encountered: