rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
This is hard to explain, so [here](https://github.com/CarlOlson/rescript-shadow-test ) is a reproducible example. The names of workspaces and modules were chosen to somewhat reflect the project I discovered this in. This...
## Background In the current ReScript design, operators for `int` and `float` types are distinct, requiring developers, especially those familiar with JavaScript, to learn and remember separate operators for these...
```res let fee = 1. == 1. let feee = 1. === 1. let fne = 1. != 1. let fnee = 1. !== 1. let fgte = 1. >=...
Very simple PoC so far. Idea would be to use this in the editor tooling.
Hi! I'm new to the language, and I like it so far. However, one thing I don't particularly like is the differentiation between regular and labeled arguments. I might be...
```Rescript module Codec = { type encode Js.Json.t type decode type t, decode: decode
This yields cryptic errors where the user does not really know what's going on. For instance in `bsb_pkg_types.ml` if the package name begins with an `@` it asserts that there...
``` Type declarations do not match: type tokenType = Bearer is not included in type tokenType = Bearer The internal representations for case Bearer are not equal. ``` The type...
Version: rescript 11.1.0-rc.3 The non-existed function is not highlighted and there's no location in the compilation error as well.
The following code: ```rescript for i in 1 to 5 { let a = ref(None) if i == 3 { a := Some(3) } Js.log(a.contents) } ``` gets compiled to:...