Re: [PHP-DEV] Re: Support negative indexes for arrays and strings

2012-09-03 Thread slevy1
>as I understood, a lot of people seem to have problems with this proposal, >since arrays and strings could (and maybe >should) behave the same. The terminology "negative indexing" seems to imply that the feature should work with arrays. To restrict it to just strings might involve creating a te

Re: [PHP-DEV] Re: Support negative indexes for arrays and strings

2012-09-02 Thread slevy1
>I see how this may work for strings and simple vectors, but what about this: > >$a = array(-1 => "foo", -2 => "bar"); echo $a[-1]; > >It should keep returning "foo", right? So then the question is - what >$array[-1] actually means? Context would be the deciding factor, i.e. perhaps restrict the

[PHP-DEV] Re: Support negative indexes for arrays and strings

2012-09-01 Thread slevy1
The idea was originally proposed by Marc Easen who created a patch and asked for help with putting together an RFC. I have yet to see a formal proposal but on the list Easen modified his idea so that it should apply to strings alone. With that in mind, would it really cause problems to have co

[PHP-DEV] Support negative indexes for arrays and strings

2012-06-12 Thread slevy1
I feel that for PHP to incorporate some of the convenience that Python offers is a good particularly with respect to attracting the upcoming generation. PHP needs an injection of new coolness to attract and captivate the imagination of young college-age people who are being exposed to Python as

[PHP-DEV] Re voting

2012-04-16 Thread slevy1
Stas: Just b/c there are rarely any women at all that participate on this list, could we at list maintain a facade of gender neutrality? I seriously can't believe that you used the word "him". What about "her"? Yeah, "her" as in myself and every other woman who codes with PHP whether to earn