note 105438 added to language.operators.assignment

From: Date: Thu, 18 Aug 2011 03:59:02 +0000
Subject: note 105438 added to language.operators.assignment
Groups: php.notes 
Request: Send a blank email to php-notes+get-182554@lists.php.net to get a copy of this message
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. ---- Server IP: 212.126.36.70 Probable Submitter: 65.190.55.132 ---- Manual Page -- http://www.php.net/manual/en/language.operators.assignment.php Edit -- https://master.php.net/note/edit/105438 Del: integrated -- https://master.php.net/note/delete/105438/integrated Del: useless -- https://master.php.net/note/delete/105438/useless Del: bad code -- https://master.php.net/note/delete/105438/bad+code Del: spam -- https://master.php.net/note/delete/105438/spam Del: non-english -- https://master.php.net/note/delete/105438/non-english Del: in docs -- https://master.php.net/note/delete/105438/in+docs Del: other reasons-- https://master.php.net/note/delete/105438 Reject -- https://master.php.net/note/reject/105438 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182554) next »