Enums in Motoko (tweet) #4834
ggreif
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Enumerated types are a simple form of variants where each of the alternatives carries trivial (unit,
()
) payload. The syntax allows to eliminate the payload specification entirely (and it is recommended to do so):Beta Was this translation helpful? Give feedback.
All reactions