pc2/sus-compiler

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

Open

#34 opened on Nov 21, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (6 forks)auto 404
Language Designenhancementgood first issue

Repository metrics

Stars
 (126 stars)
PR merge metrics
 (PR metrics pending)

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