Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework module function documentation #857

Open
6 tasks
fhammerschmidt opened this issue Apr 24, 2024 · 0 comments
Open
6 tasks

Rework module function documentation #857

fhammerschmidt opened this issue Apr 24, 2024 · 0 comments

Comments

@fhammerschmidt
Copy link
Member

fhammerschmidt commented Apr 24, 2024

Functors is a confusing and overloaded term, we should get rid of it.

  • Remove mentions of "Functor" in favor of "Module Function"
  • 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 type and module type of to the syntax lookup (see playground link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant