True in the above cases. Bad examples then :)
How about the common cases where a function needs to validate its input. Do you assign the pre-validated content to the variable first, or do you assign it to something else first and then to the final variable after it's validated?
In reply to Re^2: Coding style: truth of variable name
by perlancar
in thread Coding style: truth of variable name
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |