Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Tuple support #15

Open
colescott opened this issue Dec 16, 2019 · 1 comment
Open

Tuple support #15

colescott opened this issue Dec 16, 2019 · 1 comment

Comments

@colescott
Copy link
Collaborator

Coalton should support standard tuples

This can be achieved like with TYAPP and TYFUN using a new TYTUP type. The hope would be to allow for tuples in the language without having to explicitly specify every sized tuple constructor.

Tuple decomposition in matches are also be a nice addition

@stylewarning
Copy link
Owner

I agree with this I think. Of course there won't be any functions that are generic on any sized tuple. (You'd have to specialize on tuple size.) But we can get support for the type expressions. We are 1/2 way doing this with tyfuns now which have arbitrary arity.

@stylewarning stylewarning mentioned this issue Feb 29, 2020
6 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants