Derick Rethans wrote:

On Thu, 26 Aug 2004, Mehdi Achour wrote:


Derick Rethans wrote:

On Wed, 25 Aug 2004, Mehdi Achour wrote:



In fact, the foreach: .. endforeach; syntax is documented here:
http://fr.php.net/manual/en/control-structures.alternative-syntax.php

We should add some links to this page in the docs of if, while, for,
foreach, and switch. Can someone take care ?

Don't do that. We should promote this.

You mean should not ?


Yes, that's what I said ;-)

So why don't we add a warning in the "alternative syntax" page ?
I think the manual should "document" PHP. Adding a link and a warning sounds better to me than hiding a feature.


If someone now finds the alternative syntax, without a note expaining that this syntax sux and that it shouldn't be used, he is maybe going to use it thinking it's ok. We better tell people: it exists, but don't use it. got my point ? :)

BTW, just for my own knowledge, why does it suck ?

didou

Reply via email to