Why does the Scala library only defines tuples up to Tuple22?

后端 未结 4 1159
予麋鹿
予麋鹿 2020-12-20 11:19

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 s

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-20 12:24

    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 there is no "technical" explanation for it, they simply had to stop somewhere.

提交回复
热议问题