rescript-lang.org
rescript-lang.org copied to clipboard
Rework module function documentation
Functors is a confusing and overloaded term, we should get rid of it.
- [x] Remove mentions of "Functor" in favor of "Module Function"
- [x] Add a new advanced chapter called "Module Function" with some better examples than the one on the module page.
- [ ] reference the advanced chapter in the module chapter
- [ ] add a note that Module Functions are called Functors in other languages, and were called that as well in ReScript previously
- [ ] Add a small example to the syntax lookup where Functors are still missing. Call it
(Module: ModuleType) => {}or similar. - [ ] Add
module typeandmodule type ofto the syntax lookup (see playground link)