rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
I think this is worth being a part of the `v11.1` release. What's the process should be?
Thank you for filing! Check list: - [ ] Is it a bug? Usage questions should often be asked in the [forum](https://forum.rescript-lang.org) instead. - [ ] Concise, focused, friendly issue...
Works for this: ```res type myDict = {name?:string, anyOtherField?: int} let tst = (d: myDict) => switch d { | {name:n, something:i} => String.length(n) + i | {name:n} => String.length(n)...
``` module A: { type a } = { @tag("kind") type a = Foo } ``` Crashes with: ``` [E] Line 3, column 4: Signature mismatch: ... Type declarations do...
The official maintenance for Node 16 ended last October. Perfect timing This won't break anything right away, but it should be marked as a breaking change. Then we can make...
```rescript let myDict = dict{ "key1": "k1" } switch myDict { | dict{"key1": k} => Console.log(`key1 value: ${k}`) | _ => Console.log("Miss") } ```
Upgrade `actions/checkout`, `actions/setup-node` and `actions/upload-artifact` to v4 to fix deprecation warnings. `actions/upload-artifact@v4` also brings significant performance improvements according to its documentation.
This used to fail on Windows and might be working again now, see https://github.com/ocaml/setup-ocaml/issues/449#issuecomment-1609260895.
```rescript type x = {name: string} type y = Person({...x}) ``` Gives: ``` I'm not sure what to parse here when looking at ")". ``` Add a field before and...
Dicts are important because they allow you to model things common in JS, and they compile to a straight forward JS object. Proposing a dedicated syntax for defining a `DIct.t`:...