docs: confirm Option A (no var/let; explicit local). Add notes to cheatsheet, language reference, tutorials. CURRENT_TASK updated with decision and next small items.

This commit is contained in:
nyash-codex
2025-09-28 02:00:53 +09:00
parent a4d014a814
commit 1994990f47
4 changed files with 19 additions and 1 deletions

View File

@ -10,6 +10,8 @@ local a, b, c # 複数宣言
local x = 10, y = 20, z # 混合初期化
```
注意: Nyash は `var`/`let` を採用していません。常に `local` で明示宣言してください(未宣言名への代入はエラー)。
### Box定義クラス
```nyash
box ClassName {