Re: [PHP] Re: More operators

[email protected] ("Christoph M. Becker")
Newsgroups php.general
Message-ID <[email protected]>
On 22.12.2016 we 21:13, Sam Hobbs wrote:

> [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:[email protected]>
> 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:[email protected]>
> 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.

ACK.  What about a section language/operators/pseudo-operators for =>
and such (the comma "operator" comes to mind)?

-- 
Christoph M. Becker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.