I think we should add support for these types!
Target Language Support
Rust has always supported i128(doc) and u128(doc) primitives types.
C# also has built-in support for this size of integer, since .dotnet 8 apparently:
Python just has int which is arbitrarily sized, so no problem there.
Even Swift added support for these in Swift 6.0 (released in 2024):
Use Case
We actually use i128 in a few places in the Slice compilers, for integer constants which could be either an u64 or an i64; i128 is the only type that covers both of those ranges. Now that we want the AST to be Slice-encodable, having int128 in Slice would be helpful for this.
I think we should add support for these types!
Target Language Support
Rust has always supported
i128(doc) andu128(doc) primitives types.C# also has built-in support for this size of integer, since .dotnet 8 apparently:
Python just has
intwhich is arbitrarily sized, so no problem there.Even Swift added support for these in Swift 6.0 (released in 2024):
Use Case
We actually use
i128in a few places in the Slice compilers, for integer constants which could be either anu64or ani64;i128is the only type that covers both of those ranges. Now that we want the AST to be Slice-encodable, havingint128in Slice would be helpful for this.