Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keywords

Reserved words and their spelling in each language. Some are reserved but do nothing yet; the description says so. See Keywords for examples.

English中文日本語한국어ไทยDescription
bind令束縛바인드ผูกBind a value or function to a name. Binding the same name again updates it.
do执実行실행ทำBlock expression do { … }. Its value is the last expression.
fn函関数함수ฟังก์ชันDeclare a named function.
mod核モジュール모듈โมดูลDeclare a module (a namespace of functions).
type符型타입ชนิดType alias. Parsed, no effect.
if若もし만약ถ้าConditional branch.
else否他아니면มิฉะนั้นAlternative branch of if.
while循間동안ขณะที่Loop while a condition holds.
for历繰위해สำหรับLoop over a range, list or text.
in于の中안에ในSeparates the loop variable from the sequence: for x in 0..10.
match配一致매치ตรงกับPattern matching.
return归戻る반환คืนค่าLeave the function with a value.
own独所有소유เป็นเจ้าของOwnership marker. Parsed and ignored; nothing is checked.
lend借貸す빌려ให้ยืมOwnership marker. Parsed and ignored; nothing is checked.
share共共有공유แบ่งปันOwnership marker. Parsed and ignored; nothing is checked.
move移移動이동ย้ายOwnership marker. Parsed and ignored; nothing is checked.
copy复複製복사คัดลอกOwnership marker. Parsed and ignored; nothing is checked.
async异非同期비동기อะซิงค์Asynchronous marker. Parsed and ignored; code runs synchronously.
wait待待つ기다려รอMeant as “await”. Unreliable; avoid it.
as为として로서เป็นNames an imported module: use "file" as m.
wherewherewherewherewhereConstraint clause after a function signature. Skipped, no effect.
post出投稿게시ส่งReserved word; has no effect.
give予渡す전달ให้Reserved word; has no effect.
fitfitfitfitจับคู่Reserved word; has no effect.
form形形형태รูปแบบDeclare a record type.
choose选選ぶ선택เลือกDeclare an enumeration with variants.
can能できる가능สามารถReserved word; has no effect.
change变変える변경เปลี่ยนแปลงReserved word; has no effect.
stop止停止멈춤หยุดReserved word; has no effect. Ling has no break.
again继続ける계속ทำอีกReserved word; has no effect. Ling has no continue.
try试試す시도ลองNot syntax: the builtin try(closure) turns a runtime error into bad(...).
sure确確か확실แน่นอนReserved word; has no effect.
maybe或多分아마도อาจจะReserved word; has no effect.
pure纯純粋순수บริสุทธิ์Reserved word; has no effect.
spawn启起動생성สร้างReserved word; has no effect. Use thread_spawn for threads.
ok可良い좋아ตกลงSuccess result ok(value); also a match pattern.
bad误悪い나쁨ผิดพลาดFailure result bad(reason); also a match pattern.
none无なし없음ไม่มีNot defined. Use () for “nothing”.
start始開始시작เริ่มUsual name of the entry point: bind start = do { … }. A name, not a keyword.
result果結果결과ผลลัพธ์Listed in the lexicon only; the lexer treats it as a name.