Search code examples
webassembly

Is there a difference between `(param i32 i32)` and `(param i32) (param i32)` in web assembly?


I've seen plenty of multi-value uses in readable web assembly code (.wat files), but what is the key difference between both?

Examples:


Solution

  • There is no functional difference. It is document in the specification here:

    Multiple anonymous parameters or results may be combined into a single declaration