Skip to content

함수 로드맵 #7

@RanolP

Description

@RanolP

함수 선언

fn max(i32 a, i32 b) i32 {
  return if a > b then a else b
}
fn max*i32 a, i32 b) i32 =
    if a > b then a else b

함수 호출

함수를 호출할 때 모든 값은 복사해서 전달되는 의미론
필요시 레퍼런스를 복사해서 넘기게

max(1, 2)
max(3, 4)

콜스택

당장은 C 콜스택 쓰고 Stackless Python의 아이디어를 받아들여서 자체 콜스택으로 구현 이전

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions