[TYPO3-core] Request for Change in CGL

Jigal van Hemert jigal.van.hemert at typo3.org
Thu Apr 4 13:01:30 CEST 2013


Hi,

On 4-4-2013 12:05, Aske Ertmann wrote:
> I not sure that makes it more readable, because if you use tabs, a
> monospaced font and a tab size of 4 (which is default in most editor
> AFAIK) the conditions will be aligned. What it does is more too add more
> empty almost empty lines.

In new code a multi-line condition is mostly formatted as:

if (condition1 && condition2
     && condition3
     && averylongcondition4
) {
     statement;
}

Seems very readable to me and doesn't waste too many (almost) empty lines.

-- 
Jigal van Hemert
TYPO3 CMS Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-team-core mailing list