syntax
syntax copied to clipboard
ReScript's syntax as a standalone repo.
https://github.com/rescript-lang/syntax/pull/408#issuecomment-836169935
In OCaml and Reason this code is valid, is there a way to express in ReScript? Any intent to support? ``` type t('a) = | [] | ::('a, t('a)) ```
Add a flag to the parser that parses all functions as uncurried by default. Goal is to let users experiment with having everything as uncurried.
Here are some temporary codepaths we should remove one day: - Our conversion of `Js.t` (#291, #317) - Attribute and extension point `bs.*` conversion (#294) - react jsx ppx 3...
Excuse the commit messages. Just a toy. This tries to allocate as few lists as possible. Benchmark shows that everything allocates less (kinda obvious if you think about it), but...
https://rescript-lang.org/blog/editor-support-custom-operators-and-more#custom-operators
# New syntax for importing values from JavaScript ## Motivation Writing bindings to JavaScript has always been perceived as a rather daunting task. Most developers are not used to writing...
Fixes #122. It works, but it is probably still far to be the right fix 😅 Any feedback is appreciated.
This introduces syntax sugar to allow early return. This comes in 2 forms: Conditional.... ```reason let safeDivideZero = (num, denom) => { guard denom !== 0 else { 0 }...
When using ReScript syntax in BuckleScript 9.0.2, I currently have to write expressions like this to create a copy of a record `x` with an updated nested field value: `{...x,...