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.
1 parent 60627f6 commit 3e93c27Copy full SHA for 3e93c27
design/mvp/CanonicalABI.md
@@ -1461,7 +1461,7 @@ the Canonical ABI.
1461
1462
#### Function type mangling
1463
1464
-Function and value types are recursively mangled into
+Function types are mangled into
1465
[`wit`](WIT.md)-compatible syntax:
1466
```python
1467
def mangle_funcname(name, ft):
@@ -1477,6 +1477,11 @@ def mangle_funcvec(es, pre_space):
1477
mangled_elems = (e[0] + ': ' + mangle_valtype(e[1]) for e in es)
1478
return '(' + ', '.join(mangled_elems) + ')'
1479
1480
+#### Value type mangling
1481
+
1482
+Value types are similarly mangled into [`wit`](WIT.md)-compatible syntax,
1483
+recursively:
1484
1485
def mangle_valtype(t):
1486
match t:
1487
case Bool() : return 'bool'
0 commit comments