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

Mathias Bolt Lesniak, liliO Design mathias at lilio.com
Wed Jul 23 20:43:33 CEST 2008


Hi!

I also like logicalOr and logicalAnd, though they're a little long.

_and etc. could also work, but I always tend to forget underscores  
when writing, so it would be a nuisance.



Mathias Bolt Lesniak
LiliO Design - www.lilio.com
mathias at lilio.com



On 23. Jul 2008, at 15:13, Robert Lemke wrote:

> 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_______________________________________________
> TYPO3-project-5_0-general mailing list
> TYPO3-project-5_0-general at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-5_0-general



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