1
General / many function arguments
« on: October 13, 2016, 03:52:12 pm »
is it an advantage when you have more than 5 function arguments?
i am programming a pong game. i have functions which contains 8 arguments.
and there are several other ones which contains at least more than one.
for me i guess its kind of comfortable just to give arguments for example
the ballshape to update the ball position or something like that.
my worry is that its not very effective and this way of programming can
lead to performance loss am i right?
maybe im wrong but that was my concern.
sorry i didnt think it was necessary to post a code example
thank you for your answears!
i am programming a pong game. i have functions which contains 8 arguments.
and there are several other ones which contains at least more than one.
for me i guess its kind of comfortable just to give arguments for example
the ballshape to update the ball position or something like that.
my worry is that its not very effective and this way of programming can
lead to performance loss am i right?
maybe im wrong but that was my concern.
sorry i didnt think it was necessary to post a code example
thank you for your answears!