interface-types
interface-types copied to clipboard
Does flags enum type as be used typename or member name?
Rationale:
https://github.com/WebAssembly/wasi-filesystem/pull/39#issuecomment-996393018 https://github.com/WebAssembly/wasi-filesystem/pull/40 https://github.com/WebAssembly/wasi-filesystem/pull/41
Sorry, I'm not sure I understand the question. In case it helps: the idea is that (flags "a" "b" "c")
logically expands to a variant (variant (case "a") (case "b") (case "c"))
and it can be used anywhere any other interface type can be used (in function parameters, results, list elements, record fields, or other variants' payloads, etc).