r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
java Apparently Java can only handle 255 parameters in a constructor...
4.0k
Upvotes
r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
View all comments
Show parent comment
1
u/Lost4468 Apr 08 '21
It depends on what exactly we're talking about. It's not uncommon to see this, and can actual be useful. E.g. you need a ton of parameters for the maths, but they're not related, it doesn't really make much sense to put them in an array there. It's quite common in python, because you can just create a dictionary of the parameters, and then pass them as arguments.