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

I would expect `\"=="` to compile to `Caml_obj.caml_equal`, just like `==` does, but instead it compiles to `===`: ```res type eq

happened to write a heavily mutable code and using `.contents` everywhere was a pain. a sugar like ml's `^` makes reading and writing mutable code with refs much easier

It is found that the attribute `@JSX` makes the printer function preserve the JSX expression. https://github.com/rescript-lang/syntax/issues/539#issuecomment-1186403650 Changing the JSX PPX to keep the `@JSX` attribute after transformation, it prints as...

As of version 17, Node.js requires import assertions (according to the [import assertions proposal](https://github.com/tc39/proposal-import-assertions)) when you want to import non-JS files (such as JSON). In ReScript we can currently make...

```res type foo(> = .. type bar=foo(> ``` Currently, these invalid type definitions can be parsed. [Playground](https://rescript-lang.org/try?code=C4TwDgpgBAZg9nAFAPigXigOkwKFJKAIwEMAnNeJZIA)

enhancement

```rescript let a = "foo" let x = !a->Js.String.includes("f") // doesn't compile (a should be a bool) let x = !(a->Js.String.includes("f")) // compiles ``` That seems like a regression from...

bug
good first issue
help wanted

Using `10.0.0-beta.3` I have an external in my project that looks like this: ``` @val external myMethod: ( /** comment for argument 1 */ ~firstArg: bool, /** comment for argument...

Rough steps - [ ] Add configuration to turn off JSX ppx entirely. Separately, figure out where best to expose this configuration. Likely depends on how JSX V4 evolves (e.g....

v10 beta formats as follows, note the inconsistency in the location of `(a, b)`: ```res do(() => receivedMessages->SortArray.stableSortBy((a, b) => DateUtils.compareDatesAsc(a.published, b.published) ) ) // With more nesting, the params...