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

Make the type for the "Case" SodaFunc constructor less restrictive #13

Open
StevenWInfo opened this issue Jan 15, 2017 · 1 comment
Open

Comments

@StevenWInfo
Copy link
Owner

I think that my definition of the Case constructor might be a little restrictive because I think the soda level function can return differently typed values. We could make an existential type just to hide those types, but that would be yet another thing to keep track of.

@StevenWInfo
Copy link
Owner Author

One possibly lightweight way of doing it would be to create a new recursive GADT acts like a list and "combines" making a list, making tuples, and adding an existential operator. Could have the constructors be like "When" and "Then" and maybe "End" if needed. Not sure if just have this as a SodaExpr or put into a Case SodaFunc constructor. This might just be hiding the verbosity/boilerplate behind something that looks like a natural SQL query rather than eliminating it, but that might be almost as good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant