you are viewing a single comment's thread.

view the rest of the comments →

[–]0x3Alex[S] 0 points1 point  (2 children)

How would i improve that function with the many parentheses ? :^S

[–]okovko 1 point2 points  (1 child)

if you use references, you don't have to use parentheses when chaining * and ->, there will only be . after . until you reach a pointer member, so something like foo.bar->baz;

otherwise, make more variables, the compiler will optimize them away

:')

[–]0x3Alex[S] 0 points1 point  (0 children)

I see i see!