rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
ReScript version `v12.0.0-alpha.14`'s "Missing required props" error does not show line numbers when the component has a `children` prop: ```rescript module Wrapper = { @react.component let make = (~value: 'value,...
ReScript version `v12.0.0-alpha.14`'s "no children prop" error does not show line numbers: ```rescript module Wrapper = { @react.component let make = (~value: 'value) => { {React.null} } } module SomeComponent...
Thank you for filing! Check list: - [x] Is it a bug? Usage questions should often be asked in the [forum](https://forum.rescript-lang.org) instead. - [ ] Concise, focused, friendly issue title...
Creates a top-level module for `Jsx`. It contains the following submodules: - `Jsx.DOMStyle` - `Jsx.Event` - `Jsx.DOM` Deprecate `JsxDOM.res`, `JsxDOMStyle` and `JsxEvent` With these changes we can have a section...
Currently the following produce syntax error, ```rescript type t = /** non-negative integer constant */ | Numeral(float) /** Addition [e1 + e2] */ | Plus(expression, expression) ``` This should be...
- String.capitalize - String.isEmpty - Dict.size - Dict.isEmpty - Array.isEmpty - Map.isEmpty - Set.isEmpty Let me know if I need to cherry-pick some changes.
The integer/Char pattern matching optimization output is worse than that of the plain switch table. For this [example](https://rescript-lang.org/try?version=v12.0.0-alpha.13&module=esmodule&code=DYUwLgBAlgzgYlAdgQ2ASUZAvBAxgCwiwD4IBvAKAghgHcowC9DLqAfCAFgA4qIPOATj4cArAAYREUQEYpogEzyAzPM7zR8gGzyA7FK2b2ELTuNb953ueHHdku3LtK7qu+rtH+EXWe+7Lf2t-W29uBzCXMLcwjzCvDm4-RMDE4MTQjkEIrNSIQUyIGXEojhliqXKYspk8mQUnby1Gji0ck1KihS0iUjAAJwBXECkAfV6IADNUGBHqAF8KRaA) benchmark.mjs ```js import { bench, run, barplot, summary, do_not_optimize } from "mitata";...
Consider a module `Test.res` with the following code: ```rescript let context = React.createContext(0) module ContextProvider = { let make = React.Context.provider(context) } @react.component let make = (~children) => { {children}...