3 ms·
22 is just arbitrary. > Is it one of those no one is going to need more than 22 arguments? You can work around this limit with nested tuples, or just defining
by ibraheemdev 6y ago
22 is just arbitrary.
> Is it one of those no one is going to need more than 22 arguments?
You can work around this limit with nested tuples, or just defining Function23 yourself. Although if your function accepts 23 arguments, you should probably refactor that anyways.
It is also worth noting that Scala 3 drops this limitation by implementing function arguments with arrays: https://github.com/lampepfl/dotty/pull/1758 https://github.com/lampepfl/dotty/pull/1758