引数
引数名は snake_case です。ハイフン付きの名前はエラーになり、新しい名前を示します。max-tokens は max_tokens、must-exist は must_exist、new-page は new_page、on-click は on_click です。(ページ内の HTML タグでは、on-click は HTML のハイフンをそのまま保持します。)
| 文 | 以前 | 今 |
|---|---|---|
input, picker, menu, confirm, llm, capture, config, call |
to: name |
into: name: 結果を格納する変数です。to は常に格納先にすぎません |
for, menu |
index: i |
at: i (for item at i in $list) |
import, include, layout, Markdown, Figure, Bibliography |
src |
path |
type |
sample |
path |
Table (KScript.Document) |
data, headers, align: "lrr" |
ターミナルの table と同様の rows、columns: { Name: 'name' }、align: ['left', 'right'] |
wait |
ms, seconds |
duration: 500ms、または単独の値: wait(500ms) |
test |
each, in, index |
テストを囲む for ループ(上記) |
@color, log_provider |
colour |
color |