[TYPO3-core] RFC: New Feature #0752: scope of BE-and FE-Cookie:can't cope with multidomain-setup

Michael Stucki michael at typo3.org
Mon Dec 12 21:50:04 CET 2005


Martin Kutschker wrote:

>> didn't you just say that we use if () ... when there is just one
>> thing happening?
> 
> Yes, but only if there is no else clause. Sorry.
> 
> So, IMHO, it's either
> 
> if (expression) statement; // one statement!
> 
> or
> 
> if (expression) {
> statement(s) // one or more statements
> } else {
> statement(s) // one or more statements
> }
> 
> I think we should not use this
> 
> if (expression) statement; // one statement!
> else statement; // one statement!
> 
> I hope we agree.
> 
> Have I confused everybody now completely?

Probably ;-)

Just FYI, at the end of the function indexRegularDocument() in
class.indexer.php is a very nice example of one-line-else statements which
make very much sense in some cases.

- michael

PS: Let's focus on the code instead of the details now, agreed?! :-)
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list