Skip to content

[specification] function syntax #178

@mrodz

Description

@mrodz

Currently available

add_ints = fn(x: int, y: int) -> int {
    return x + y
}

Planned Support

  • add_ints = fn(x: int, y: int) x + y
  • fn add_ints(x: int, y: int) -> int {
      return x + y
    }
  • export fn add_ints(x: int, y: int) -> int {
      return x + y
    }
  • export fn print(x: Printable)  {
      native "mscriptstd.dll#print"
    }

Metadata

Metadata

Assignees

Labels

compilerIssues related to compilation & parsingenhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions