Req #30432 [Com]: Add alternate syntax
| From: | kriss at krizalys dot com | Date: | Sun, 21 Oct 2012 07:17:39 +0000 |
| Subject: | Req #30432 [Com]: Add alternate syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174208@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=30432&edit=1
ID: 30432
Comment by: kriss at krizalys dot com
Reported by: vivers at one dot net
Summary: Add alternate syntax
Status: Wont fix
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: All
PHP Version: 5.0.2
Block user comment: N
Private report: N
New Comment:
Whether or not this will ever be added to the official PHP release, there is a similar proposed
patch for PHP 5.4 here: https://bugs.php.net/bug.php?id=62164
Previous Comments:
------------------------------------------------------------------------
[2011-10-31 12:03:29] christian dot reinecke at web dot de
Can you explain why you declined that?
Because I'm not the only one using the alternative syntax in views/templates, especially for
if/elseif/else and some old-school pages that do not have anything like a controller require
try/catch statements mixed in HTML, so that syntax would really help.
------------------------------------------------------------------------
[2004-10-14 14:42:15] derick@php.net
Nope, we won't add more "old-style" alternative syntax like this.
------------------------------------------------------------------------
[2004-10-14 14:33:16] vivers at one dot net
Description:
------------
Can you add alternate syntax for try ... catch? Something like:
try :
...
catch () :
...
endtry;
I'm using exceptions on presentation pages and this syntax would make the source much more
readable.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=30432&edit=1