[TYPO3-dev] RFC: CGL change regarding return statements

Andreas Wolf typo3ml at andreaswolf.info
Fri Mar 11 11:24:53 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Dmitry,

Am 11.03.2011 09:08, schrieb Dmitry Dulepov:
> Hi!
> 
> Andreas Wolf wrote:
>> So what I propose is to drop the limitation to one return statement for
>> all validation logic at the start of a method.
> 
> -1. Recently many functions were refactored for this. It improves
> readability.

is this -1 still valid if I narrow "validation" to "guard clauses" as
described by Oli? Or do you propose to limit it to only throwing
exceptions and keeping the single-return-statement-rule?

Regards
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREIAAYFAk15+HUACgkQHWtXp155bP+DlgCfRpipPgCv656fWfGY5mmE4tjk
JEMAn2sqQwVVR2dMFsB/oKUNNCFh1Z1+
=8YS3
-----END PGP SIGNATURE-----




More information about the TYPO3-dev mailing list