-
Currently there is no way to use Map or Set with rescript natively,
alternatively we have to use some library like
[rescript-js](https://github.com/bloodyowl/rescript-js) or write our own bindings,
…
-
In JSX 3, we can use an underscore for passing prop names starting with an uppercase letter, e.g.
```rescript
@react.component @module("react-native")
external make: (
~_ItemSeparatorComponent…
-
`bs-platform@3.1.3`
Can't use `[bs.unwrap]` with labeled arguments.
### Code
```
[@bs.obj]
external func :
(
~param: string,
~polyParam: [@bs.unwrap] [ | `Str(string) | `Int(int…
-
```res
private let u = 3
private let {length} = module (List)
private external ..
```
Note private in expression is not needed
```res
let u = {
let a = b // a is already private by the sc…
-
Note we are planning to provide numeric poly var support so that
`#"1"` is going to be compiled as 1 instead of "1"
Ideally, we should allow user to write `#1` directly since it is compiled to 1…
-
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.
…
-
This is done, leaving leftovers for a future release.
This task is to track the various activities related to JSX V4.
- [x] PPX in the syntax repo https://github.com/rescript-lang/syntax/pull/58…
-
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 be better just providing a subset…
-
Are there any plans to support Deno? The Deno ecosystem is growing rapidly and we are stuck with JavaScript and TypeScript since bs-platform is only packaged as an npm package.
-
Although having JavaScript sources is fine, due to the language's nature, it is easy to make typo or programs that malfunction due to programmer error. TypeScript (or ReScript?) might be a better sour…