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

operate on tuples #17

Open
KiaraGrouwstra opened this issue Feb 17, 2018 · 5 comments
Open

operate on tuples #17

KiaraGrouwstra opened this issue Feb 17, 2018 · 5 comments

Comments

@KiaraGrouwstra
Copy link
Owner

KiaraGrouwstra commented Feb 17, 2018

Array-like type operations are now clunky because we can't operate on tuples until microsoft/TypeScript#5453.
When resolved, ditch much of the array module? Length could just use ['length'], for one.
Currently tuple module is better with tuples (known length) but essentially neither approach is perfect.

@KiaraGrouwstra
Copy link
Owner Author

Closing as unactionable until we can do more about this.

@goodmind
Copy link

@goodmind
Copy link

@tycho01

@KiaraGrouwstra
Copy link
Owner Author

KiaraGrouwstra commented Jun 12, 2018

goodmind Thanks for linking me! It looks like we're still a while off for this though -- I responded there to lay out some of the gaps.

@KiaraGrouwstra
Copy link
Owner Author

KiaraGrouwstra commented Jun 29, 2018

I guess Concat handles spread in tuple literal types. looks like @fightingcat solved most of the tuple use-cases too!
most interesting use-cases probably need that, so it's unfortunate it's so hacky (tricking the compiler into not seeing the recursion) it may well break.

I guess most of the cool stuff remains blocked on 6606, so I wonder what's unblocked now. path benefits maybe?

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

No branches or pull requests

2 participants