John Jackson
John Jackson
I'm wondering if it would be possible to implement the ["tail modulo constructor" transformation](https://v2.ocaml.org/manual/tail_mod_cons.html) that was added to recent OCaml versions. It allows some non-tail-recursive functions (e.g. the OCaml stdlib...
Have there been any plans or proposals to implement the “rules of hooks” into ReasonReact? ([ReactJS docs on the topic for context](https://reactjs.org/docs/hooks-rules.html)). A common pitfall with hooks is that they...
```graphql fragment Html on Node { ... on MarkdownRemark { __typename html } } ``` The compiler fails with this message: ``` Error: Inline fragments are not yet supported ```...
I'm working on a custom template language, and my site kept failing to compile due to "Tried to use templateContent too early" errors. This was puzzling, because a very similar...
The Babel JSX compiler converts HTML entities into the unicode characters they represent. In ReScript, we have to use the actual unicode directly. For some characters, like ` ` this isn't...
DEV is a popular site for people to blog about Reason. This just adds a link to it in the documentation’s community page. (ReactJS’s docs also link to the React...
```reason type t = | Hi({name: string}); ``` Causes a syntax error. https://reasonml.github.io/en/try?rrjsx=true&reason=C4TwDgpgBMULxQD5QBIEsAUBvAdgQwFsIAuKAZ2ACc0cBzAXwEoBuAKCA
Is there any syntax for [refutation cases]? Or is that planned? [refutation cases]: https://ocaml.org/releases/4.12/htmlman/gadts.html#p:gadt-refutation-cases
I've been working with code that uses "hash map" style JS objects, and the ReScript syntax for declaring them can be tedious. (Or rather, the *lack* of syntax to declare...
Code currently formats like this: ```res type t = {x: int} let f = x => { { x: x ->Belt.Option.map(succ) ->Belt.Option.map(succ) ->Belt.Option.map(succ) ->Belt.Option.getExn, } } ``` The lines beginning...