Remove builtin bigint type and move it to stdlib #14

Open
opened 2025-12-19 05:20:44 -05:00 by Ghost · 1 comment
Ghost commented 2025-12-19 05:20:44 -05:00 (Migrated from codefloe.com)

Similar to the complex type in #13, the bigint type isn't used frequently enough to justify having it as a builtin, especially when it can be implemented using the other language features in the stdlib. Additionally, this opens up the possibility of having more arbitrary precision types, like BigRat, in the same stdlib module(s).

This will also remove the complexity of bigints in ranges and other places where they were previously used but their implementation was unclear.

Similar to the `complex` type in #13, the `bigint` type isn't used frequently enough to justify having it as a builtin, especially when it can be implemented using the other language features in the stdlib. Additionally, this opens up the possibility of having more arbitrary precision types, like BigRat, in the same stdlib module(s). This will also remove the complexity of `bigint`s in ranges and other places where they were previously used but their implementation was unclear.
Ghost commented 2025-12-19 18:14:11 -05:00 (Migrated from codefloe.com)

bigint builtin was removed in 3fa937d1c5

`bigint` builtin was removed in 3fa937d1c54bcbaba20343487cb5a03422f06622
Sign in to join this conversation.
No labels
stdlib
syntax
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nclang/design#14
No description provided.