KScript 문서
KO

언어

영어에서 자동 번역되었습니다. 원문은 영어입니다.

변경 사항

구문과 연산자

이전 지금
if $n lt 10, ge, eq, ne는 .kscript 파일에서 if $n < 10, >=, ==, != (XML은 단어를 유지하며, and, or, not는 두 경우 모두 단어로 남습니다) fix (KS6012)
} else if $b { } elif $b { fix (KS6012)
input(into = name) input(into: name) fix (KS6012)
catch NotFound, Conflict as e catch NotFound | Conflict as e fix (KS6012)
catch err when $err.type == 'NotFound' catch NotFound as err(when는 여전히 테스트를 추가합니다)
match $n { case 1 { } default { } } match $n { 1 => { } _ => { } }, match 식과 같은 분기
test(name: "x", each: n, in: [1, 2], index: i) { } for n at i in [1, 2] { test(name: "x {$n}") { } }
KScript.Window(title: "Hi") { }, KScript.input(...) import KScript.UI, 그다음 Window(title: "Hi") { }: 패키지는 import에서만 이름이 주어지며, 아무것도 조용히 가져오지 않습니다

Edit this page on GitHub