Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Antony Dovgal
On 09.10.2007 10:57, Alexey Zakhlestin wrote: >> How come? >> It looks like you're reading $bar[':5'], but forgot the quotes. >> On the other side, what could be easier than a function call? > > operator is definitely easier because it lets us reuse the same syntax > for strings and arrays (and pe

RE: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Ford, Mike
On 09 October 2007 08:18, Antony Dovgal wrote: > On 09.10.2007 10:57, Alexey Zakhlestin wrote: > > > How come? > > > It looks like you're reading $bar[':5'], but forgot the quotes. > > > On the other side, what could be easier than a function call? > > > > operator is definitely easier because it

Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Antony Dovgal
On 09.10.2007 12:48, Ford, Mike wrote: >> Yes, I see this quite often in the list: "let's invent a new thing >> instead of an old thing, that would make peoples' life easier". >> >> But you forget that both the old and the new thing would co-exist >> and people would have to learn BOTH, which defi

Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Stefan Walk
Antony Dovgal wrote: > Right, so let's force other people to learn crappy unreadable syntax > duplicating nice and clear function call Oddly, this "crappy unreadable syntax" doesn't lead to any confusion or complaints for newbies of languages like python or ruby, judging from the IRC channels. And

Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Scott MacVicar
Sure it works fine when it's been in the language for several years and it's guaranteed to be available in the version provided by your hosting company. In reality this isn't the case with PHP so everyone will end up using the older method to support backwards compatibility or mixing it and causin

Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Richard Quadling
On 09/10/2007, Scott MacVicar <[EMAIL PROTECTED]> wrote: > Sure it works fine when it's been in the language for several years and > it's guaranteed to be available in the version provided by your hosting > company. > > In reality this isn't the case with PHP so everyone will end up using > the old

Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Stanislav Malyshev
operator is definitely easier because it lets us reuse the same syntax for strings and arrays (and people would need to learn one operator Having same syntax mean two different things (string access / array access) doesn't qualify as "easy" in my book anyway. I know there's a language which us

Re: [PHP-DEV] substr/array_slice in []

2007-10-09 Thread Andrei Zmievski
Most of the core developers were present at the PDM in Paris where that item was put on the list. -Andrei Antony Dovgal wrote: From what I understood, most of the core developers agreed that there are no reasons to implement this syntax, so we're just wasting our time and traffic here. --