Re: Re: More operators

From: Date: Thu, 22 Dec 2016 23:05:33 +0000
Subject: Re: Re: More operators
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-325919@lists.php.net to get a copy of this message
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: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. ACK. What about a section language/operators/pseudo-operators for => and such (the comma "operator" comes to mind)? -- Christoph M. Becker

« previous php.general (#325919) next »