-
Notifications
You must be signed in to change notification settings - Fork 2
Implementation of enumify #9
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
base: master
Are you sure you want to change the base?
Conversation
|
LGTM, but we need to fix the CI first, by updating the pinning version to the latest. Also, don't push personal branches on the upstream repository https://github.com/taurus-d/taurus/branches. Please use your fork instead. |
I forgot to fork this repo. Do we merge this directly (after the CI fix), or do I make a new duplicated PR but from my fork? |
|
On Thu, 2021-06-03 at 09:45 -0700, João Lourenço wrote:
> LGTM, but we need to fix the CI first, by updating the pinning
> version to the latest. Also, don't push personal branches on the
> upstream repository taurus-d/taurus/branches. Please use your fork
> instead.
I forgot to fork this repo. Do we merge this directly (after the CI
fix), or do I make a new duplicated PR but from my fork?
No, it's perfectly fine, just a tip for next time.
…--
Sincerely,
Luís Ferreira @ lsferreira.net
|
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
A core feature of Taurus lib. This new type
enumifyis similar to a dynamic enum. Basically an enum with types that can change at runtime. This is influenced by Rust's enums.Basic usage:
Usage:
Types can created inside scopes must be static:
This works with
@nogcandBetterC!Values can be accessed inside
match.