Dropped: Limit 22 (original) (raw)
The limits of 22 for the maximal number of parameters of function types and the maximal number of fields in tuple types have been dropped.
- Functions can now have an arbitrary number of parameters. Functions beyond scala.Function22 are erased to a new trait scala.runtime.FunctionXXL.
- Tuples can also have an arbitrary number of fields. Tuples beyond scala.Tuple22 are erased to a new class scala.runtime.TupleXXL (which extends the trait scala.Product). Furthermore, they support generic operation such as concatenation and indexing.
Both of these are implemented using arrays.