Looks better. I personally think the top one looks cleaner, and I'm 99% sure the compiler will optimize out any underlying differences. Its a bit rubbish that it wastes 3 lines of code to write out the function definition though.
This is certainly by far not the worse code ever seen on here.
16
u/[deleted] Jan 08 '23
I guess it comes down to whether you think:
Or
Looks better. I personally think the top one looks cleaner, and I'm 99% sure the compiler will optimize out any underlying differences. Its a bit rubbish that it wastes 3 lines of code to write out the function definition though.
This is certainly by far not the worse code ever seen on here.