Doc #66772 [Opn->Csd]: Comma operator does not behave as operator
| From: | cmb@php.net | Date: | Thu, 31 Mar 2016 16:12:43 +0000 |
| Subject: | Doc #66772 [Opn->Csd]: Comma operator does not behave as operator | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13371@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66772&edit=1
ID: 66772
Updated by: cmb@php.net
Reported by: cmbecker69 at gmx dot de
Summary: Comma operator does not behave as operator
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: *
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-03-31 16:11:50] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=338860
Log: fixed #66772 (Comma operator does not behave as operator)
------------------------------------------------------------------------
[2016-03-31 15:59:19] cmb@php.net
Related To: Bug #71902
------------------------------------------------------------------------
[2014-07-07 13:44:43] nikic@php.net
@yasuo: This is docs problem. PHP has no comma operator, it only uses commas as an expression
delimiter in some places, like function arguments.
------------------------------------------------------------------------
[2014-07-07 11:44:07] cmbecker69 at gmx dot de
> Since this is documented for a long time, it may be good to
> categorize as engine issue.
Please note, that I do not suggest to implement a universal comma
operator as in C/C++. Actually, I believe that it is not necessary
and doesn't have real benefits (at least in PHP).
IMHO it would be sufficient to document the comma operator more
clearly, or perhaps, to not categorize it as *operator* at all
(Java does not have a comma operator[1], but similar uses of the
comma as in PHP).
[1]
<http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.27-120>
------------------------------------------------------------------------
[2014-07-07 05:38:16] yohgaki@php.net
Reasonable discussion.
Since this is documented for a long time, it may be good to categorize as engine issue.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66772
--
Edit this bug report at https://bugs.php.net/bug.php?id=66772&edit=1