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

ries van Twisk typo3 at rvt.dds.nl
Tue Jul 22 18:05:29 CEST 2008

Hey Karsten,

may be you can explain first we you want to call a method AND or OR  
and give an example?

Currently I don't see a reason to create a OR or a AND method while  
these operators already exist in PHP.

I am sure you don't want to create a function that does this:

$value = logicalor ($a, $b);

while you can simple do this :
$value = $a or $b;

(or using &&, &, ||, |, not sure what you guys find best practice)


On Jul 22, 2008, at 10:23 AM, Karsten Dambekalns wrote:

> Hi everyøne.
> 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
> Now, it's your turn - those methods could bear your chosen name! :)
> So, let the thoughts flow...
> Regards,
> Kårsten

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