Enums in Motoko (tweet) #4834
ggreif
started this conversation in
Show and tell
Replies: 1 comment
-
|
Scheduled for Friday June 27 2025 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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