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 Union(X, Y) to denote a union type X | Y. Fixes #2659 #2727

Closed
wants to merge 1 commit into from

Conversation

asterite
Copy link
Member

@asterite asterite commented Jun 2, 2016

This makes the parser produce a Union AST node when finding Union(X, Y). It's a special case, but with this we can now talk about any type using a name (this was the only missing type)

@bcardiff
Copy link
Member

bcardiff commented Jun 3, 2016

Would splats work here?

@asterite
Copy link
Member Author

asterite commented Jun 3, 2016

Don't merge, I have a better (much powerful) idea.

Splats should be allowed in any generic instantiation, really good idea :-)

@asterite asterite mentioned this pull request Jun 3, 2016
@asterite asterite deleted the feature/union_syntax branch June 3, 2016 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants