syntax
syntax copied to clipboard
ReScript's syntax as a standalone repo.
Although i'm not sure if it's possible but It would be nice to have dash support in jsx elements and jsx props: Use cases: elements: ```js // amp web components...
As far as I know, infix operators are banned from the new syntax, but it seems operators declared in OCaml/old ReasonML can be used in the new syntax (I tried...
i.e print ```rescript let add = x => y => x + y ``` as it is instead of ```rescript let add = (x, y) => x + y ```
Building on the [experimental-docgen](https://github.com/rescript-lang/syntax/tree/experimental-docgen) branch. Fixes rescript-association/rescript-lang.org#359
```rescript let a = j`foo${ let x = "bar" x }baz` ``` is printed into ```rescript let a = j`foo${{ let x = "bar" x }}baz` ```
I think ```rescript let x = `foo${x ++ " " ++ y}bar` ``` should be printed as it is or ```rescript let x = `foo${x} ${y}bar` ``` instead of ```rescript...
I've been working with code that uses "hash map" style JS objects, and the ReScript syntax for declaring them can be tedious. (Or rather, the *lack* of syntax to declare...
See https://github.com/rescript-lang/rescript-vscode/pull/247
it is common that we define a closed object type, but use it as an extensible type: ``` type student = {"name": string} let f = (param : {.. ...student})...
Code currently formats like this: ```res type t = {x: int} let f = x => { { x: x ->Belt.Option.map(succ) ->Belt.Option.map(succ) ->Belt.Option.map(succ) ->Belt.Option.getExn, } } ``` The lines beginning...