为什么 Scala 库只定义了 Tuple22 以内的元组? [英] Why does the Scala library only defines tuples up to Tuple22?

查看:52
本文介绍了为什么 Scala 库只定义了 Tuple22 以内的元组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇是否有人知道为什么 Scala 库在 22 处停止,其元组类型为 Tuple22?
神秘数字22有什么特殊的隐藏含义吗?
这是某种内部笑话吗?

I'm curious if anyone knows why the Scala library stops at 22 with its tuple type Tuple22?
Does the mysterious number 22 have a special hidden meaning?
Is this an internal joke of some kind?

推荐答案

这个问题并不新鲜,参见 http://scala-programming-language.1934581.n4.nabble.com/Why-tuples-only-to-22-td1945314.html为什么 FunctionN(0-22) ProductN(1-22) TupleN(1-22)?

This question is not new, see http://scala-programming-language.1934581.n4.nabble.com/Why-tuples-only-to-22-td1945314.html or why FunctionN(0-22) ProductN(1-22) TupleN(1-22)?

AFAIK 对此没有技术"解释,他们只是不得不停在某个地方.

AFAIK there is no "technical" explanation for it, they simply had to stop somewhere.

这篇关于为什么 Scala 库只定义了 Tuple22 以内的元组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆