[TYPO3-core] RFC #16586: Refactor conditions in t3lib_extFileFunc
Jigal van Hemert
jigal at xs4all.nl
Sun Nov 28 12:26:12 CET 2010
Hi,
On 28-11-2010 1:29, Andreas Wolf wrote:
> before:
> if (condition) {
> foo();
> bar();
> } else {
> $this->writeLog(...);
> }
>
> after:
> if (!condition) {
> $this->writeLog(...);
> }
> foo();
> bar();
before and after are not functionally identical. after would be
functionally identical to:
if (condition) {
foo();
bar();
} else {
$this->writeLog(...);
foo();
bar();
}
writeLog simply returns after logging the message, so execution continues.
-1 by reading
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list