Req #42688 [Opn->Nab]: Alternative syntax for control structures
| From: | danack@php.net | Date: | Fri, 15 Jan 2016 14:31:13 +0000 |
| Subject: | Req #42688 [Opn->Nab]: Alternative syntax for control structures | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198685@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=42688&edit=1
ID: 42688
Updated by: danack@php.net
Reported by: php dot net at eoasys dot com
Summary: Alternative syntax for control structures
-Status: Open
+Status: Not a bug
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Irrelevant
PHP Version: 5.2.4
Block user comment: N
Private report: N
New Comment:
I don't think this is a bug report.
Previous Comments:
------------------------------------------------------------------------
[2007-09-17 17:51:21] php dot net at eoasys dot com
Description:
------------
I find the alternative syntax for control structures quite useful and use them exclusively in all my
code. My only wish is that they become available for all similar structures. Obvious ones which come
to mind are Function and Class.
It has been said that:
"The 'endif;' stuff is old legacy syntax and is definitely not the
recommended way of doing things."
It seems to me that the "{...}" form goes a ways back as well. Is the alternative syntax
really frowned upon? What kind of trouble might be caused by it's use?
Thanks,
Richard
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=42688&edit=1