interface-types icon indicating copy to clipboard operation
interface-types copied to clipboard

Does flags enum type as be used typename or member name?

Open lygstate opened this issue 3 years ago • 1 comments

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

lygstate avatar Dec 17 '21 02:12 lygstate

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).

lukewagner avatar Dec 17 '21 17:12 lukewagner