note 105438 deleted from language.operators.assignment by danbrown
| From: | danbrown@php.net | Date: | Thu, 18 Aug 2011 16:48:02 +0000 |
| Subject: | note 105438 deleted from language.operators.assignment by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182569@lists.php.net to get a copy of this message | ||
Note Submitter: purdue at nc dot rr dot com
----
The note by "inca" below mixes apples and oranges.
Lazy evaluation only applies to *logical* operators ("&&" for example), and
operator assignment only applies to *arithmetic* operators ("&" for example) [and the
string concatenation operator]. The fact that operator assignments do not use lazy evaluation is
therefore obvious, and by design.
There is no operator assignment for logical operators ("&&=" for example). If
such support were ever to be added, then it should probably use lazy evaluation, like its expanded
form already does.
There is no lazy evaluation support for arithmetic operators, whether in expanded form or in
operator assignment form. It such support were ever to be added for the expanded form, then it
should probably be added for the operator assignment form as well.