What is the limit (if any) to the tuple cardinality in Swift?

后端 未结 1 680
醉梦人生
醉梦人生 2020-12-20 12:01

Each tuple cardinality is represented by its own type in swift (as in any other strongly-typed programming language I\'m aware of), so we have

($T1, $T2)
($T         


        
相关标签:
1条回答
  • 2020-12-20 12:15

    In the current version of Xcode 6 Beta, compilation fails with tuples of arity larger than 1948 (the swift executable exits with code 254; there isn't a specific warning or error).

    0 讨论(0)
提交回复
热议问题