[Typo3-dev] OT: Wonders of PHP

Dimitri Tarassenko mitka at mitka.us
Thu Nov 17 20:03:24 CET 2005


> ever tried:
>
> switch(TRUE) {
>         case $this->checkValue($var):
>         break;
> }
>
> ? ;-)

Ahem....

When you later have to debug stuff like this, you start to understand
why there is no switch() statement in Python. ;)))

Maybe because "break;" is actually a very well disguised "goto"?

--
Dimitri Tarassenko


More information about the TYPO3-dev mailing list