component-model
component-model copied to clipboard
The canonical ABI's type syntax isn't quite compatible with WIT
There are a couple cases where the canonical ABI's mangling of function signatures isn't valid according to WIT.md, specifically around optional types (note: I've left off the identifiers in WIT like they are in the canonical ABI):
| WIT | Canonical ABI |
|---|---|
|
|
|
|
|
|
|
|
I think that either WIT should be made more permissive to accept these cases as well, or the canonical ABI should be changed to match WIT. (Or some combination of the two on a case-by-case basis.)