rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
The inferred arity of raw JS code is actively used with `%ffi`, but it can produce unexpected results with `%raw`: ```res let foo: int => int = %raw(`function add(x, y=5){...
```res @return(undefined_to_opt) @send external get: (t, 'k) => option
Checking to see what CI says about this. Wondering if we will see same problem as in #7506
As following task of #7057 JS-like bitwise operators need to be implemented as unified operators - [x] [Bitwise NOT](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_NOT) (`~`, `lnot`) -[ ] support `int`, `bigint` (https://github.com/rescript-lang/rescript/pull/7418) - [x] [Bitwise...
The new Stdlib still has quite a few modules that are not fully documented. Also some of them lack .resi files. They should be documented fully in the .resi, not...
Creating this issue here for tracking as https://github.com/rescript-association/rescript-core is in a different org. Before v12 release, the APIs of the new Core standard library that has just been merged into...
Importing code from another workspace often creates an error: ``` 4 ┆ switch value { 5 ┆ | Some(arr) => 6 ┆ module Array = await Belt.Array 7 ┆ Js.log(arr->Array.keepMap(x...
Fixes #7537 Fixes #7538
Can be similar to how we build the playground. rescript tools / docgen is already in the monorepo so this should be straightforward.
version: 12.0.0-alpha.13 platform: macOS arm64 demo https://gist.github.com/hackwaly/bae3945b92170e79b9130bf1b6019209 ``` pnpm rewatch watch [1/7] 📦 Built package tree in 0.00s [2/7] 👀 Found source files in 0.00s [3/7] 📝 Read compile state...