pc2 / pc2/sus-compiler

Default interface should have no name, instead of copying "Constructor convention"

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.