Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

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

Open
lygstate opened this issue Dec 17, 2021 · 1 comment
Open

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

lygstate opened this issue Dec 17, 2021 · 1 comment

Comments

@lygstate
Copy link

lygstate commented Dec 17, 2021

Rationale:

WebAssembly/wasi-filesystem#39 (comment)
WebAssembly/wasi-filesystem#40
WebAssembly/wasi-filesystem#41

@lukewagner
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants