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

ReScript's dynamic import feature is not really "dynamic"; it's just a lazy import of a static module. We haven't caught up with ESM yet, which allows us to change the...

Inline/nested records was recently added to v12. We could investigate what it'd take to allow them in `external` definitions as well, where they would also be quite useful.

Boy, this is a rabbit hole! No promises I'll finish this. 😅

I noticed while following the setup steps that one of the flags was no longer correct. ``` $ opam install . --deps-only --with-test --with-dev-setup -y opam: unknown option `--with-dev-setup', did...

100% inspired by MoonBit's [autofill `SourceLoc` function argument](https://docs.moonbitlang.com/en/latest/language/fundamentals.html#autofill-arguments), this makes it possible to inject a labelled argument to any function, and as long as it's optionak, has the type of...

In `js_dump.ml`, the module name "JsxRuntime" is hardcoded. This may prevent JSX preserve mode from working correctly with runtimes other than React.

I mentioned this quite a few times already, I think we should absolutely make `Jsx.component` abstract. Reasons: First, the existing type definition as ```rescript type component Jsx.element ``` is simply...

```rescript let f = ref(ignore) // Ok f.contents = () => { doA() doB() } // Weird f := ( () => { doA() doB() } ) ```