We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
(binary ...)
1 parent 82a66f8 commit 2c77edbCopy full SHA for 2c77edb
design/mvp/Explainer.md
@@ -1389,7 +1389,13 @@ val ::= false | true
1389
f64canon ::= <core:f64> without the `nan:0x` case.
1390
```
1391
1392
-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`.
1393
+
1394
+`(binary ...)` expression provides an alternative syntax allowing the binary contents
1395
+of the value definition to be written directly in the text format, analogous to data segments,
1396
+avoiding the need to understand type information when encoding or decoding.
1397
1398
+For example:
1399
```wasm
1400
(component
1401
(value $a bool true)
0 commit comments