You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebAssembly 1.0 (MVP) and 1.1 draft both allow repetition and co-mingling of inlined/abbreviated function import and exports.
The wording "The latter abbreviation can be applied repeatedly, with “…” containing another import or export." is more wide than necessary. The only possible grammar seems (export)* (import)? because the "import", if present, must be present at the end.
For example, the valid combinations besides no inlined import/export
only import -> this means the func cannot have a body or locals, it is effectively a different way of writing import func
N exports -> this is a module-defined func where N exports point to the current position in the index namespace
N exports then import -> this is an imported function re-exported N times
To figure these points out from the spec requires too much thinking, so I think the section can be worded, ya?