[TYPO3-dev] Code humor
Denyer Ec
denyerec at gmail.com
Wed Jan 28 14:02:01 CET 2009
I found myself with an IF/ELSE mountain in a non Typo3 project and was
disturbed by the number of RETURN statements, so I set an errorflag
var and then returned boolean TRUE on success, or the (int) errorcode
on any failure, then handled the errorcode from the calling function.
(Obviously the return of the function was evaluated with === against TRUE)
Is that a respectable way to approach such a problem?
Regards,
Denyer
More information about the TYPO3-dev
mailing list