[TYPO3-core] RFC #11718: speed up function t3lib_iconWorks::skinImg()
Rupert Germann
rupi at gmx.li
Fri Aug 14 19:35:54 CEST 2009
Michael Stucki schrieb:
> Rupert Germann schrieb:
>> why is this better than the parantheses around the complete condition ?
>
> Because it distincts the condition from the rest of the line.
> Here is a better example:
>
> $result = ($input + 5 < 10) ? 20 : 0;
>
> vs.
>
> $result = ($input + 5 < 10 ? 20 : 0);
ok, for complex conditions it makes sense.
thanks for the explanation.
greets
rupert
More information about the TYPO3-team-core
mailing list