Decodal
This commit is contained in:
@@ -6,7 +6,7 @@ composition expression は、複数の値・制約・構造を合成する式で
|
||||
|
||||
`&` は制約を保った合成を行う。
|
||||
|
||||
```n
|
||||
```dcdl
|
||||
Port = Int & >= 1 & <= 65535;
|
||||
Config = MyConfig & { port = 8000; };
|
||||
```
|
||||
@@ -15,7 +15,7 @@ Config = MyConfig & { port = 8000; };
|
||||
|
||||
`//` は右辺優先の構造的 patch を行う。
|
||||
|
||||
```n
|
||||
```dcdl
|
||||
Patched = Base // {
|
||||
feature_hoge.enable = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user