Re: Re: More operators
| From: | Sam Hobbs | Date: | Thu, 22 Dec 2016 20:13:54 +0000 |
| Subject: | Re: Re: More operators | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325918@lists.php.net to get a copy of this message | ||
[Note that my email client switched the order of things (strange) but apparently Alain was replying to Christoph who replied to me.]
Alain Williams <mailto:addw@phcomp.co.uk> Tuesday, December 20, 2016 5:41 AM It doesn't really matter if it is/is-not an operator; people will expect to find it documented in the list of operators --- the explanation might well start by saying that it is not an operator. Christoph M. Becker <mailto:cmbecker69@gmx.de> Tuesday, December 20, 2016 5:31 AM I'm not sure whether => should be regarded an operator. It appears to be rather a syntactic token for array-element-initializer[1] and foreach-key[2]. I think that would help for those of us familiar with other languages at least. Imagine looking at a program using "=>". We should first read a book about PHP but it would help if the documentation would reduce the need for a book as much as possible. If "=>" were listed among operators then it would help many of us to find the relevant documentation.