[TYPO3-50-general] Competition: Best replacement for "and"/"or" wanted!

Robert Lemke robert at typo3.org
Wed Jul 23 15:13:01 CEST 2008


Hi Karsten,

Am 22.07.2008 um 17:23 schrieb Karsten Dambekalns:

> You cannot name a method "and" or "or" in PHP. So I will use ånd and  
> ør
> locally for now but since this is not too widespread - we will need
> something else.
>
> We could use
>  * lOr - which is too short
>  * logicalOr - which seems too long
>  * either - too literary

my vote (for now):

logicalOr()
logicalAnd()

etc.

Because it's readable, intuitive and matches the method names used in  
PHPUnit assertions.

Cheers,
robert


More information about the TYPO3-project-5_0-general mailing list