Skip to content

[Feature Request] Incorporate u128/i128 to stdlib #1950

@willemneal

Description

@willemneal

Many AS projects currently use as-bignum in their programs for 128-bit integers. Other languages like Rust have added them to their standard library.

My concern is as projects and tooling grows libraries could rely on different versions of as-bignum and given it's importance there should only be one source of truth. Furthermore, I've already ran into the issue of types clashing because of two different versions being in the same project, e.i. the compiler complained that one type cannot be cast to the other because they had different locations.

I know the goal of the stdlib is to provide the same API as the JS stdlib, but in this case I advocate for adding it as a first class number is the language.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions