by CountHackulus · 16y ago · 0 comments
Instead of adding parentheses, try writing it like this:
while(*dst)
{
*dst = *src;
dst++;
src++;
}
It's instantly more readably, it's very obvious what's going on, and you've lost no performance. There's also no parentheses to add.Plus, once you start piling on a bunch of such code-explosions, you end up with functions that are much harder to scan, because what could've been an easy to scan 8-line function is pedantically written out as this super-explicit 30-line thing.