rescript-lang.org
rescript-lang.org copied to clipboard
Official documentation website for the ReScript programming language
I've seen these types being used in the wild but they're either unsearchable or don't exist in the docs. I assume {..} is related to the object type but not...
Hello. What a great tool to have the playground, I always appreciate having such things for the languages I use. I think it will be beneficial to be able to...
Looks like this is missing in the documentation. ```rescript @module("library-x") @val external doStuff: (@as(json`{format:"utf8", includeStuff: false}`) _, string) => string = "doStuff" let fileContents = doStuff("somefilename.txt") // Compiles to: //...
The following code compiles in v10, but not in v11. https://rescript-lang.org/try?version=v11.0.1&code=DYUwLgBAhhC8EG0AMAaCBGAugKFJA+nBAFIDOAdAJIB2Y5YA9gKIAeADg9SLQJZTAAKKMkwBKIA ```rescript let a = [0, 1] let _ = Js.Int.toExponential(a[0]) ``` ``` [E] Line 2, column 29: This has...
Intrinsic JSX elements = lowercase JSX elements (`` from ThreeJs for example) that takes their own props, not just `domProps` which all lowercase JSX elements automatically do today. This can...
Decorators are not sorted, see screenshot: 
https://rescript-lang.org/syntax-lookup#uncurried-function says > ReScript functions are curried by default, ... which is not true anymore in ReScript 11.
Whenever I try to run "npm create-rescript-app" in PowerShell on Windows 10 I get an "Invalid character" script error after picking out version from the wizard (on attached screenshot). The...
The following example code is from the documentation in the clearTimeout section, I added a log to see the effect: ```js let closeHackerNewsTab = () => Js.log("close") let timer =...