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

are you guys planning to support enums? #193

Closed
warlord500 opened this issue Feb 27, 2018 · 1 comment
Closed

are you guys planning to support enums? #193

warlord500 opened this issue Feb 27, 2018 · 1 comment

Comments

@warlord500
Copy link

in rust and other languages, have support for enumerations. which allows for creating types that
must match some planned types.

some syntax suggestions
no extra data -- nil or unit value
not sure what might be used other wise.
``
(defenum months [ january nil
febuary nil
march nil
april nil ]

;dont know what you guys use for generics
(defenum option [ Some T
None nil ]
``

@eriksvedang
Copy link
Collaborator

Hello, yes enums / sum types are coming. The syntax isn’t finished but thanks for your input!

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

No branches or pull requests

2 participants