This commit is contained in:
2026-06-16 00:45:10 +09:00
commit 5d6a03b74f
32 changed files with 1443 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# Value
この章では、言語が扱う値の分類を定義する。
primitive type は、通常のデータ値ではなく、値が満たすべき組み込み制約として扱う。
```n
name = String;
retry = Int default 3;
ratio = Float;
enable = Bool default true;
```
現在の primitive type は `String``Int``Float``Bool` である。
各型の個別仕様へのリンクは [Manual Index](../../index.md) に集約する。
primitive type と制約合成の詳細は [制約と default](../constraints-and-defaults.md) も参照する。