-
Notifications
You must be signed in to change notification settings - Fork 0
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
Built-in product/tuple types and unit types #78
Comments
Alternatively, overloading * to refer to the tuple type, as in The downside is that it might be confusing with |
This means that the user can always write `A * B * C` for the type of tuples `(a, b, c)` of values of those respective types. This is a quick implementation for issue #78. Parsing is not yet implemented!
Product types are now parsed; this issue is otherwise subsumed by #79. |
It is possible to have a user-defined
Tuple
type that allows types likeMap(Tuple(A, B), C)
. This is useful, because CCT types likeR3a(X, Y, Z)
are more intuitively expressed asMap(X, Tuple(Y, Z))
. The downside is that everyn
-tuple would have to be explicitly defined, and a shorter notation (ie(Y, Z)
) would not be possible. A built-in tuple type (to go along with theFunction
type) would make the library more user-friendly.The text was updated successfully, but these errors were encountered: