Skip to content

Commit f0dda99

Browse files
authoredMar 27, 2024··
Introducing the bigint (#6670)
* add primitive bigint * Js_bigint adding operations * Js_json adding support of bigint * rename test * remove bigint from Js_json * stale comment * remove unnecessary guard in pattern matching * fix literal_overlaps * primitive bigint instead of Js_bigint.t * variant coercion for bigint * add error test * add optimization of comparisons * add bigint_test and binding bigint methods, NaN, etc * stale comment * add bigint pow operator * clean up Js_exp for bigint operations * remove isNaN, isInfinite * remove NaN from BigInt * fix compare function * fix test * add bitwise operations * eta conversion for bigint * optimization * bitwise operators in Js_bigint * add test for bitwise operations * remove bigint operators from parser and pervasives * rebase clean up * update change log * fix incorrect compare bigint values * remove leftover * removed leftover * handling and testing bigint values with leading zeros and minus * remove optimization const_compare from parmatch and add test * add tests for pattern matching bigint liternal * support only decimal bigint literal and pattern matching * fix test * handle delimiter '_' * throw Division_by_zero in bigint div, mod * call runtime only when dividing by zero * fix incorrect dividing by zero with non constant * remove is_safe from Pdivbigint, Pmodbigint * stale comments * fix bigint_utils.compare * change bigint model to sign * string * clean up
1 parent c8c4b3a commit f0dda99

File tree

98 files changed

+1158
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+1158
-116
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
# 11.1.0-rc.6 (Unreleased)
1414

15+
#### :rocket: New Feature
16+
17+
- Add the primitive bigint type https://github.com/rescript-lang/rescript-compiler/pull/6670
18+
1519
#### :bug: Bug Fix
1620

1721
- Fix mishandling of uncurried functions in super errors. https://github.com/rescript-lang/rescript-compiler/pull/6694
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
Warning number 11
3+
/.../fixtures/bigint_match_literal.res:3:3-4
4+
5+
1 │ let m1 = switch 1n {
6+
2 │ | 0001n => 1
7+
3 │ | 1n => 1
8+
4 │ | -0001n => -1
9+
5 │ | _ => 0
10+
11+
this match case is unused.

0 commit comments

Comments
 (0)