rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
This PR adds a compiler-side optimization for the most important functions from the standard library's `Option` module: `Option.forEach`/`map`/`flatMap`. - At the Parsetree stage, we rewrite these into the same switch...
## Summary - detect real invocations during type checking and annotate the typed tree - lower those annotations directly to the existing lambda primitives instead of relying on the Parsetree...
I would be in favour of having a [CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) file. (Some [inspiration](https://github.com/marimo-team/marimo/blob/main/CODEOWNERS)) It seems nice that we can add owners for different files and folders. Pull requests can take this...
Given these definitions: ``` module M = { @react.component let make = () => React.null } module type S = module type of M ``` Trying to unpack a first-class...
My assistant and I created a very basic implementation of for...of loops that only works on arrays for now. Will need to think about how to support iterators later.
Adds support for `try..finally` and `try..catch..finally` syntax to ReScript. No breaking changes / full backwards compatibility. Resolves #6974.
## Summary - add container setup instructions describing how to install OCaml and dune manually ## Testing - not run (documentation change) ------ https://chatgpt.com/codex/tasks/task_e_68cb775741a0833193e0e6246b9b4b75
## Summary\n- annotate parsed expressions with mutable return flags and propagate into the typed tree\n- add a parser-time pass that marks tail positions and expose an accessor for tooling\n- update...
First step in cleaning up string processing in the compiler. Define a unified `String_kind.t` as follows (replacing the existing `delim` type), make it mandatory and use it throughout the compiler...
I add `let sleep = ms => Promise.make((resolve, _) => setTimeout(resolve, ms)->ignore)` to a lot of my projects. Would like to have this in the standard library.