rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

The compiler for ReScript.

Results 500 rescript-compiler issues
Sort by recently updated
recently updated
newest added

> Something to discuss post v12 Add support for providing "catch all" variant constructors to tagged variants, to allow capturing all non-literal discriminator cases of a variant. This lets you...

Some ideas; - Shapes, like multiple constructors with records in a single unboxed variant, where we can figure out which record is which at runtime (by checking distinct props, etc)...

OCaml 5.4.0 added support for immutable arrays. Investigate if immutable arrays can be added to ReScript in a similar way.

Closing #8029 This was unsettling me, so I decided to create a PR to fix the binding and remove the broken migraiton.

As described in https://github.com/rescript-lang/rescript/pull/7043#issue-2537532373 record duplication currently emits: ```js let newrecord = { ...obj }; newrecord.field = value; ``` It should be: ``` { ...obj, field: value }; ```

enhancement

Fix https://github.com/rescript-lang/rescript/issues/8013

It would be nice to pass a variable as a `dict{}` key: ```rescript let loc = "BS_PRIVATE_NESTED_SOME_NONE" let properties = dict{ [loc]: schema, } ```

## Environment - **ReScript version:** 12.0.0 - **OS:** macOS - **Node version:** v22.20.0 ## Problem The `rescript-tools doc` command is not extracting docstrings from type definitions and returns an empty...