syntax
syntax copied to clipboard
ReScript's syntax as a standalone repo.
Here is a non-complete list where I think parens are redundant (work in progress). Note I am not suggesting to remove all of them, but to suggest to remove some...
I can't quite figure out how to add backslashes to backticked strings. The following parses, ```res let test = `\\\ \\\\` // var test = "\\ \\"; ``` The following...
Currently people can do `let pat = exp `, the `pat` can be exhaustive, this is an unsafe behavior which should already trigger an warning. As we discussed, it may...
Arguments of parameterized types, e.g., `~label=option=?` have `>=` in them, and that unfortunately results in a ligature in the fonts that support them. Probably some cases when those ligatures are...
Personally, I understood that `contents` is the mutable field name of the record returned by `ref` constructor in the OCaml std libraries, however: 1. it's quite foreign to JavaScript community....
As a standard react javascript developer, I did expect the output of RescriptFormat to moreless be the same of prettier. In my subjective opinion whenever I format this: ``` @react.component...
What we had in reasonml ``` let f = x => x ? () => () : (() => Js.log("no")); ``` After conversion to rescript if formats to: ``` let...
`/usr/local/lib/node_modules/bs-platform` takes 138 megabytes of space. Would it be hard to ship the code formatter, bsrefmt, as a separate package? I'm making a Docker container with many formatters in it,...
Reason file: ``` let f: unit => [ | `A] = () => `A; let g: unit => [ | `B] = () => `B; let h = b =>...