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

add support for semantic ENUM type #130

Open
zippy opened this issue Mar 23, 2016 · 0 comments
Open

add support for semantic ENUM type #130

zippy opened this issue Mar 23, 2016 · 0 comments

Comments

@zippy
Copy link
Owner

zippy commented Mar 23, 2016

currently we've been faking enums by creating a symbols as usages of the NULL_STRUCTRE, i.e. surface-less Symbols. This is effectively a singleton enum in that it creates a unit of non-variant semantics.

For example we have three items TRANSCODE, OPERATOR and VALIDATOR which are used to semantically identify a process type. These should actually be items of an ENUM type because their meaning comes from being part of a set.

Additionally this would allow adding transcoders onto enum types, i.e. to convert them into error codes, or error strings in "old-fashioned" carriers. This way we can implement things HTTP_STATUS codes nicely.

Perhaps we should not call this "ENUM" but rather SEMANTIC_SET or something like that.

@zippy zippy added this to the Proto Launch milestone Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant