syntax icon indicating copy to clipboard operation
syntax copied to clipboard

ReScript's syntax as a standalone repo.

Results 108 syntax issues
Sort by recently updated
recently updated
newest added

```res private let u = 3 private let {length} = module (List) private external .. ``` Note private in expression is not needed ```res let u = { let a...

In [there](https://rescript-lang.org/docs/manual/latest/pattern-matching-destructuring) ```rescript let optionBoolToBool = opt => { switch opt { | Some(trueOrFalse) => trueOrFalse | None => false } } ``` seems redundant. Since there is no need...

enhancement

```rescript let a = 1 let b =j`$a, $(a), ${a+1}` ``` Take this for example. The first and second interpolation work, however, the third `${a+1}` would trigger an error: ```...

Note we are planning to provide numeric poly var support so that `#"1"` is going to be compiled as 1 instead of "1" Ideally, we should allow user to write...

Unlike JavaScript's `===`, for ocaml, most places where `===` is used, it is a wrong use case, it is useful in a small places where some internal optimizations is applied....

Functors provide a way to describe your types in a more concise way. Compare these two examples: ``` Belt.Map.t ``` ``` MapOf(Name).t ``` [In Reason](https://reasonml.github.io/en/try?rrjsx=true&ocaml=LYewJgrgNgpgBAFwJ4Ad4GU4F44GcCWA5gFByKrwB2IlATjAMaLGnlpz5gyUL7ItkAbgEMocBsBRwAXHAAUCADQcuPPkgCUcAEIwoCAHQBJMAYkpi3MC1CRYcALLCUAeQBm8hzLjotOXAi0EAwIrMjsAOQiUBDwCNieBkpwUaKxyg4GnNy8yFq6+gZOKEmWlNbEttDwAHLCwPA4BYYmRcIA1jAAwiCSwrTCAEb2cgFBIWEUiAlj+JQkrLDx5gnogXOEZr0o-TBlYBos4fDClPjAotisAD5wPQDuN3AACkRPAIJQOwwMwixLcEo9RgYHeZwuUFw3lO50uxXccjqDQ0SSuZGabRKblovXetAGSFYZAAfpxpHIqvYkTBDmQyABtW5yABEXT0MFoSGZyk+31+GgA3PJmeg0O1YNy7iB7oLhQBxCAIXCS16ELTXAC6rGIAIA+gkgQ1QeDRFDrgA+HR6QzFJIgPEEuAWuAAKVwBigIBIQA) it works perfectly fine [In...

from scalafmt docs about printer width: ``` - Keep in mind that 80 characters fit perfectly on a split laptop screen with regular resolution. - GitHub mobile view only shows...

Given the following file, test.ml: ``` let square x = x * x let a = "\000\000\246\255\247\255" ``` running `./darwin/bsc.exe test.ml` results in: ``` // Generated by ReScript, PLEASE EDIT...

``` let v = "\"123" ``` Error: Offset: 1, Invalid escape code: " while in node: ``` rescript-compiler/jscomp%node Welcome to Node.js v16.11.1. Type ".help" for more information. > "\"123" '"123'...