Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't Use Flags In Rust To Do List Example #11

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Don't Use Flags In Rust To Do List Example #11

merged 1 commit into from
Oct 3, 2023

Conversation

adamgfraser
Copy link
Contributor

The usage of the flags data type does not match the intended semantics of priority and forces users to immediately work with a relatively esoteric WIT type when getting started. We can instead use an enumeration and simply define our own ordinal function for it.

@adamgfraser adamgfraser requested a review from vigoo October 3, 2023 17:30
@adamgfraser adamgfraser merged commit f9d7b3b into golemcloud:main Oct 3, 2023
2 checks passed
@adamgfraser adamgfraser deleted the enum branch October 3, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants