Skip to content

関数の引数を省略してもexistsはtrueを返す #635

@taiyme

Description

@taiyme
@func(arg) {
  return exists arg
}
func()

引数 arg を省略した場合でも、exists arg はtrueを返します。
(引数の省略は正式な構文ではないが……)

引数を省略した場合、そのまま扱うとエラーになってしまうので、existsで判定できると助かります。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions