pc2/sus-compiler

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

Open

#34 aperta il 21 nov 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Rust (6 fork)auto 404
Language Designenhancementgood first issue

Metriche repository

Star
 (126 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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 {
  /*...*/
}

Guida contributor