Skip to content

Add Support for int128 and uint128 Primitive Types #709

@InsertCreativityHere

Description

@InsertCreativityHere

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions