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

fourth / fifth tuples? #104

Closed
liamzee opened this issue May 24, 2023 · 1 comment
Closed

fourth / fifth tuples? #104

liamzee opened this issue May 24, 2023 · 1 comment

Comments

@liamzee
Copy link

liamzee commented May 24, 2023

For completeness's sake, and because there are some libraries that think having long tuples are a good thing (System.Process, I'm looking at you), would it be useful to have support for 4- and 5-tuples?

I can do PR work if you'd like, but it's really trivial fundamentally.

@ndmitchell
Copy link
Owner

My argument has always been that pairs make a lot of sense, triples are sometimes handy, and by the time you have a four tuple, you probably want to name them. The other issue is that by the time you get to 4/5 you end up with lots of functions, and a very complex naming scheme. So I'd suggest no, and I'd also suggest System.Process have less large tuples...

If you do want a scheme for tuples that scales uniformly, something like lens should work.

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