first class module syntax is kinda weird (and uses `val`)
Open
Nobody has claimed this yet.
KIND: FEATURE REQUEST
Parser
- Dominant language
- OCaml
- Stars
- 10.3k
- Forks
- 438
- PR merge metrics
- No merged PRs in 30d
Description
cc @chenglou
module type Number = {
let value: int;
};
module Zero: Number = {
let value = 0;
};
let print_number = (n) => {
let module N = (val(n: (module Number)));
print_int(N.value)
};
print_number((module Zero: Number));
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Reason example and clarifying the intended syntax change. The issue names no source files, tests, replacement syntax, or acceptance criteria, so its scope needs agreement before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100