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

Similar to https://github.com/melange-re/melange/pull/1043

enhancement

Already started in #6899.

enhancement

Example adapted from `jscomp/test/tramp_fib.res`: ```rescript let rec fib = (n, k) => switch n { | 0 | 1 => k(1) | _ => Suspend( () => fib(n - 1,...

bug
syntax

As discussed with @zth: We should deprecate most functions from the OCaml stdlib and point people to `Belt` / `Js.xxx2` / a new stdlib instead where appropriate. So basically one...

enhancement

Since it accepts the `exn` type, I expect it to simply generate `throw exn` instead of recreating an exception instance, which might break on `exn` having a Js error. v11:...

bug

Given an unboxed variant like this, `Primary` has the same runtime representation as `Color("primary")` ```rescript @unboxed type color = | @as("primary") Primary | @as("secondary") Secondary | Color(string) ``` This means...

bug

Clean up after dropping support of OCaml backend

ParseTree is still there to be removed

``` let f: (~foo: int=?) => unit = (~foo) => () ``` This yields the error: ``` This function should have type (~foo: int=?) => unit but its first argument...

bug

After #6611 was merged it is no longer possible to throw errors like `EvalError`. The throw statement now is `thow new Error(exn)`. Example: The `Js.Exn.raiseEvalError` function: https://github.com/rescript-lang/rescript-compiler/blob/0b1443f967808a41c3ad309002eca964f0b6465f/jscomp/others/js_exn.res#L48 compile to: https://github.com/rescript-lang/rescript-compiler/blob/0b1443f967808a41c3ad309002eca964f0b6465f/lib/es6/js_exn.js#L10-L14...