Is there a list of reserved words for Reason?
Context:
I just tried to make a record type like so:
type todo = {done: bool, description:string};
That doesn’t work because done
is apparently a reserved word. Knowing what reserved words are I tried searching for a list of those words. Similar to this for JavaScript.
I could not find one. Or perhaps I’m using the wrong search terms.
I did find this page with lexical grammar for OCaml. And we probably cannot use any of those in Reason code (right?).
For Reason I did find these two API reference pages:
- https://reasonml.github.io/api/index.html (and all underlying)
- https://reasonml.github.io/api/index_values.html
But they don’t say anything about the done
keyword.
So my question remains.
If there’s no such list: shall I have a go at making one?