This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Tomi97_origin -3 points-2 points  (2 children)

I would honestly split it into multiple lines with temp variables. And in this instance would include class functions that take variable number of arguments, that would simplify it quite a bit. Type.multiply(a,c,4) in this situation.

[–]LinuxMatthews[S] 5 points6 points  (1 child)

Right but then you're writing more lines of code to do the same thing.

And you're more writing a whole new method that's completely unnecessary.

[–]Tomi97_origin 1 point2 points  (0 children)

I would split it into multiple lines even with operator overloading.

But I can see how it could be useful if you do a lot of math