Add required array element constraints

This commit is contained in:
2026-08-11 17:24:04 +09:00
parent 5a05da6fe4
commit 46b2b3b1b6
35 changed files with 6328 additions and 5042 deletions
+3 -2
View File
@@ -9,10 +9,11 @@ name = String;
retry = Int default 3;
ratio = Float;
enable = Bool default true;
tags = Array;
tags = [...String];
```
現在の primitive type は `String``Int``Float``Bool``Array` である。
現在の primitive type は `String``Int``Float``Bool` である。
配列は primitive type ではなく、必須の要素制約を持つ `[...T]` で表現する。
各型の個別仕様へのリンクは [Manual Index](../../index.md) に集約する。
primitive type と制約合成の詳細は [制約と default](../constraints-and-defaults.md) も参照する。