Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Morfi
($n) => { echo $n; } ($n) use ($m) => { echo $n; } On Tue, Feb 19, 2013 at 8:11 PM, Levi Morrison wrote: > > IF (and I stress if) we add a a shorter anonymous function syntax I'd > > like it to be geared towards one-liners because that's where the > > current syntax feels really verbose, especial

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-13 Thread Morfi
> > echo "foobar"["foo"][0]; "foobar"["foo"] - Why not "undefined index"? On Tue, Dec 13, 2011 at 10:20 AM, Nikita Popov wrote: > This can't go into PHP 5.4.0 in any case, because it is a feature > addition and the release is already in RC. > > Nikita > > On Tue, Dec 13, 2011 at 7:16 AM, Laruen

Re: [PHP-DEV] New dereferencing syntaxes in 5.4

2011-11-29 Thread Morfi
Why not possible? $result = ($model = new DomainModel('foo', 'bar'))->findByName('John'); On Wed, Nov 30, 2011 at 5:55 AM, Rasmus Lerdorf wrote: > On 11/29/2011 05:22 PM, de...@lucato.it wrote: > > Hi Rasmus, > > > > I already tested a similar example (see > > http://codepad.viper-7.com/tNkTTX