Default interface should have no name, instead of copying "Constructor convention"
Open
Nobody has claimed this yet.
enhancement
good first issue
Language Design
- Dominant language
- Rust
- Stars
- 126
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Right now, the default interface has the module name:
module multiply_add {
interface multiply_add: int a, int b, int c -> int o
/*...*/
}
Instead, we should have it be the abscence of a name:
module multiply_add {
interface: int a, int b, int c -> int o
/*...*/
}
Or further still, for purely functional modules:
module multiply_add : int a, int b, int c -> int o {
/*...*/
}
Contributor guide
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
Review the current parser and compiler handling for default interfaces and compare it with the syntax shown in the issue. Resolve which of the proposed nameless forms is intended, then verify that the chosen syntax is accepted and the existing named-interface behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100