Re: [VOTE] (restart) Bare Name Array Literal/Dereference

From: Date: Sat, 21 Jun 2014 20:59:35 +0000
Subject: Re: [VOTE] (restart) Bare Name Array Literal/Dereference
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-75034@lists.php.net to get a copy of this message
Are "scalar" methods also for arrays? Regards Thomas Andrea Faulds schrieb am 21. Juni 2014 22:16: > > On 21 Jun 2014, at 21:05, Thomas Bley <mails@thomasbley.de> wrote: > >> just for simplicity, using $array->key instead of $array:>key would be >> nice. > > It would be. The problem with that, though, is that it would limit > possibly more useful ideas in that space, for example, we couldn’t > implement Nikita’s scalar methods,* which I’d very much like. > > *Technically, we still could, but it’d be a bit confusing IMO, and I’d > like to see certain scalar properties as well, ->length for instance. > -- > Andrea Faulds > http://ajf.me/ > > > >

« previous php.internals (#75034) next »