We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
(binary ...)
1 parent 0ab2379 commit db62dc8Copy full SHA for db62dc8
1 file changed
design/mvp/Explainer.md
@@ -1382,7 +1382,13 @@ val ::= false | true
1382
f64canon ::= <core:f64> without the `nan:0x` case.
1383
```
1384
1385
-The validation rules for `value` require the `val` to match the `valtype`. For example:
+The validation rules for `value` require the `val` to match the `valtype`.
1386
+
1387
+`(binary ...)` expression provides an alternative syntax allowing the binary contents
1388
+of the value definition to be written directly in the text format, analogous to data segments,
1389
+avoiding the need to understand type information when encoding or decoding.
1390
1391
+For example:
1392
```wasm
1393
(component
1394
(value $a bool true)
0 commit comments