Edit report at https://bugs.php.net/bug.php?id=30432&edit=1

 ID:                 30432
 Comment by:         christian dot reinecke at web dot de
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[2004-10-14 14:42:15] der...@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

Reply via email to