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

Autogenerate convenience feature for choices. #3946

Open
michaellilltokiwa opened this issue Oct 15, 2024 · 0 comments
Open

Autogenerate convenience feature for choices. #3946

michaellilltokiwa opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New feature or request Fuzion language related to the language, syntax, etc

Comments

@michaellilltokiwa
Copy link
Member

Currently, if we explicitly want to tag a value, we can do:

x := (option String).tag nil

It might make sense to generate a convenience feature for every choice, such that the following is possible:

option(T type, x option T) option T => x # this would be auto generated
x := option String nil
@michaellilltokiwa michaellilltokiwa added enhancement New feature or request Fuzion language related to the language, syntax, etc labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fuzion language related to the language, syntax, etc
Projects
None yet
Development

No branches or pull requests

1 participant