Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Rasmus Lerdorf
Mike wrote: In my opinion I don't think PHP would be where it is today if it wasn't for being so easy to learn and use. I attribute this directly to the fact that it didn't use a lot of "syntax sugar" that is unreadable and can't be "Googled" for. You can't Google "[]", and my guess is searching

[PHP-DEV] Unicode and XML

2008-05-28 Thread Edward Z. Yang
In PHP 6, incoming user data will automatically be in (unicode) form. (That is, assuming that the JIT functionality for converting gets implemented). One of the implementation details I'd like to consider involves non-XML and/or non-SGML codepoints inside markup. As per the Unicode specification,

[PHP-DEV] CVS Account Request: gatorv

2008-05-28 Thread Christopher Valderrama
Translating and mantaning documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] voting, was: syntax something

2008-05-28 Thread Stanislav Malyshev
Hi! Verifying that one user hasn't created hundreds of accounts for voting purposes? No problem if voting is linked to a php.net account, of course. I'd say linking voting to having php.net account would make sense. For general "anybody can vote" vote one always can create a poll on any fre

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Stanislav Malyshev
Hi! So you can present PHP users as senseless robots that are unable to understand array() syntax and I can't point to the extreme UNreadability Nobody ever did that. The next step would be to call me a blasphemer and pronounce anathema upon me because I refuse to vote for a feature that ha

[PHP-DEV] New/Cleaner PHP 5.3 Windows Build

2008-05-28 Thread Hector Santos
Folks, I would like to have people tried the new updated buildconf, configure script files created with the new PHP 5.3 and the PECL2 libraries in mind. I prepared a web page for this PHP work effort: http://beta.winserver.com/public/phpdev I prepared some zips so this can previewed and

Re: [PHP-DEV] __toString() and exceptions

2008-05-28 Thread Sebastian
Hi, thank you, first of all because this was the first link to Zend Weekly News that worked. ;-) then to the real thing: i already thougt that such an answer was abroad. i know that the zend engine has actually never been written to work with exceptions. altought the zend engine 2 has great ne

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Chris Stockton
Hello, On Wed, May 28, 2008 at 12:12 PM, Gregory Beaver <[EMAIL PROTECTED]> wrote: > I've thought about allowing [] for a while and personally have come up > with my own litmus test for new features. > > 1) is the syntax missing from the language? > 2) if so, does the syntax add missing functiona

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Pierre Joye
hi, What's the idea behind repeating the same (good or bad) argument endlessly with more or less prose around them? Thanks for voting at the end anyway. On Wed, May 28, 2008 at 9:12 PM, Gregory Beaver <[EMAIL PROTECTED]> wrote: > I've thought about allowing [] for a while and personally have come

Re: [PHP-DEV] __toString() and exceptions

2008-05-28 Thread Guilherme Blanco
Hi Sebastian, This is known and I already asked this quite some time ago. Here is the summary of what have I asked here: http://devzone.zend.com/article/2016-Zend-Weekly-Summaries-Issue-336#Heading6 Regards, On Wed, May 28, 2008 at 3:17 PM, Sebastian <[EMAIL PROTECTED]> wrote: > Hi, > > i just

[PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Gregory Beaver
I've thought about allowing [] for a while and personally have come up with my own litmus test for new features. 1) is the syntax missing from the language? 2) if so, does the syntax add missing functionality or significant maintenance benefit? 2) if not, does the new syntax add significant value?

RE: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Jared Williams
> -Original Message- > From: Brian Moon [mailto:[EMAIL PROTECTED] > Sent: 28 May 2008 16:21 > To: Antony Dovgal > Cc: Sebastian Deutsch; internals@lists.php.net > Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] > > Antony Dovgal wrote: > > On 28.05.2008 02:58, Sebastia

[PHP-DEV] __toString() and exceptions

2008-05-28 Thread Sebastian
Hi, i just found it's really annoying that you can't throw exception in the context of __toString(). This makes it nealy impossible to work with __toString() because you'll have to watch not to throw exceptions (which is even more annoying..). Could this be adressed? Greetings -- PHP Inte

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Brian Moon
Mike wrote: In my opinion I don't think PHP would be where it is today if it wasn't for being so easy to learn and use. I attribute this directly to the fact that it didn't use a lot of "syntax sugar" that is unreadable and can't be "Googled" for. You can't Google "[]", and my guess is searching

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Chris Stockton
Hello, On Wed, May 28, 2008 at 10:25 AM, Jani Taskinen <[EMAIL PROTECTED]> wrote: > Exactly. Open this can of worms and soon PHP is something else than easy to > learn.. someone already mentioned that {} thing for objects.. :) > > Sidenote: There are more important things to solve in PHP 5.3 (and

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Jani Taskinen
Exactly. Open this can of worms and soon PHP is something else than easy to learn.. someone already mentioned that {} thing for objects.. :) Sidenote: There are more important things to solve in PHP 5.3 (and especially HEAD) than adding this little syntax sugar.. --Jani Mike wrote: In my o

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Mike
In my opinion I don't think PHP would be where it is today if it wasn't for being so easy to learn and use. I attribute this directly to the fact that it didn't use a lot of "syntax sugar" that is unreadable and can't be "Googled" for. You can't Google "[]", and my guess is searching PHP.net for "

Re: [PHP-DEV] Name resolution rules

2008-05-28 Thread Stan Vassilev | FM
Hi, You examples are showing some quite horrible situations with namespaces. Agreed, the least thing, an error should be thrown on collision. Regards, Stan Vassilev I find the namespace resolution rules quite confusing. It's become quite difficult to tell if I'm calling a static method or

[PHP-DEV] Name resolution rules

2008-05-28 Thread James Dempster
I find the namespace resolution rules quite confusing. It's become quite difficult to tell if I'm calling a static method or a function, or namespaced static method or namespaced function, and so on. I don't quite fully understand or appreciated the point of namespaces. If some one could help me ou

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Chris Stockton
+1 for: ['foo' => 'bar'], Not sure if it was decided but -1 for ['foo': 'bar'] Here is why, Array(), is much more confusing to someone coming with no experience in php then []. Array() in most languages looks like a function call. So Array('foo' => 'bar'), verse ['foo' => 'bar'], most people will

RE: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Andi Gutmans
> -Original Message- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 27, 2008 11:32 PM > To: [EMAIL PROTECTED] > Cc: Sebastian Deutsch; PHP Developers Mailing List > Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] > > Please let's not turn PHP into unr

RE: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Andi Gutmans
> -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 27, 2008 11:44 PM > To: Antony Dovgal > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] > > At a certain level everything is just syntax. There is nothi

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Brian Moon
Antony Dovgal wrote: On 28.05.2008 02:58, Sebastian Deutsch wrote: fyi - i added a RFC http://wiki.php.net/rfc/shortsyntaxforarrays please add your votes You do understand that you will not be able to use this syntax in your products for at least next 5 years without rising min required PHP

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Richard Quadling
2008/5/28 Stan Vassilev | FM <[EMAIL PROTECTED]>: > var array = new Array(); -- same as -- var array = []; > var object = new Object(); -- same as -- var object = {}; > > And when people have both of those, guess which one they use in more than > 90% of the cases. > > Regards, > Stan Vassilev I'v

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Greg Beaver
Stanislav Malyshev wrote: Hi! Not hard at all. Certifying that people only vote once - hard What's hard in that? Only logged in users vote, one login - one vote. :) Verifying that one user hasn't created hundreds of accounts for voting purposes? No problem if voting is linked to a php.net

Re: [PHP-DEV] CVS Account Request: phpdoc

2008-05-28 Thread Hannes Magnusson
On Wed, May 28, 2008 at 1:25 PM, ZhiQiang He <[EMAIL PROTECTED]> wrote: > translate php manual You are not going to get "phpdoc" as username. -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Ford, Mike
On 28 May 2008 08:20, Derick Rethans advised: > Right, and I will add immediately to my coding standard that this is > forbidden to use. As is, of course, your right -- just as it would be mine to immediately add to my coding standards that it is compulsory! +1 (my irrelevant personal opinion

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Felipe Pena
2008/5/27, Sebastian Deutsch <[EMAIL PROTECTED]>: > fyi - i added a RFC > > http://wiki.php.net/rfc/shortsyntaxforarrays > > please add your votes > I'm -1. > cheers > > Sebastian > > Sebastian Deutsch schrieb: > > > > dont have karma - but I would love it! so +1 here. > > would it make sens

[PHP-DEV] CVS Account Request: phpdoc

2008-05-28 Thread ZhiQiang He
translate php manual -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread David Zülke
-1. (the syntax with colons is appalling, and the other one doesn't look any more readable - and is not javascript-ish either, since JS arrays can only have numeric keys. I'd welcome the syntax without any chance of specifying keys, but then, that'd be a really half-arsed solution) Am

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Lokrain
Hello again, renderSomething(array('exclude' => array('a', 'b', 'c'), 'include' => array('d', 'e', 'f'))); vs: renderSomething(['exclude' => ['a', 'b', 'c'], 'include' => ['d', 'e', 'f']]); Your version is more readable but try this one: renderSomething( array( 'exclude' => a

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Jon L.
On Wed, May 28, 2008 at 3:14 AM, Antony Dovgal <[EMAIL PROTECTED]> wrote: > > The next step would be to call me a blasphemer and pronounce anathema upon > me because I refuse to vote for a feature that have already been voted > against. > But why not? Go on, vote forever until it's in. > >From th

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Stan Vassilev | FM
Hi, No one said it's a matter of life and death. But is it only a matter of life and death improvements that should be considered for PHP? The typical use case that benefits most from this is when a function accepts arrays as a means of structured/named/nested options, something I use a lot.

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Lokrain
Hello, As I always will say -1 to this. But I have a question, people here talk that this is very very useful in some cases. Can you please show others such cases so we can get your point? I really want to know this super hyper cases, this syntax is mega useful. Regards, Dimitar

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Lukas Kahwe Smith
-1 regards, Lukas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Stefan Walk
On Wednesday 28 May 2008 09:11:50 Antony Dovgal wrote: > On 28.05.2008 10:44, Rasmus Lerdorf wrote: > > Today's web developer is > > typically writing half their app in some variety of Ecmascript, either > > Javascript or Actionscript and this array syntax is second nature to all > > those folks. >

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Antony Dovgal
On 28.05.2008 12:03, Stanislav Malyshev wrote: Hi! Want me to find some more 50 people to vote against it? If you find 50 active commiters against it Ah, you mean active commiters.. Then you probably will want to know that the actual number is 6:5 if you count only active contributors and

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Stanislav Malyshev
Hi! Want me to find some more 50 people to vote against it? If you find 50 active commiters against it - I think it'd make sense to hear what they have to say. Ask them why they didn't say anything by now. We're having a conference these days, I believe I can find even more people just to

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Antony Dovgal
On 28.05.2008 11:34, Stanislav Malyshev wrote: Hi! I don't recall any languages to introduce new syntax because it's so handy to those who come from PHP and I see no reasons for us to do it either. If they don't do it and we do, people come from them to us and not the reverse. Yeah, from

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Stanislav Malyshev
Hi! I don't recall any languages to introduce new syntax because it's so handy to those who come from PHP and I see no reasons for us to do it either. If they don't do it and we do, people come from them to us and not the reverse. The reason is to make life easier for people. And I think cu

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Antony Dovgal
On 28.05.2008 11:24, Alexey Zakhlestin wrote: know PHP, but have a certain experience with *script languages, i.e. you're going to do a favor for 1% and confuse the remaining 99%. percentage is way different. such "short array syntax" is a common ground for a lot of modern dynamic languages.

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Alexey Zakhlestin
On 5/28/08, Antony Dovgal <[EMAIL PROTECTED]> wrote: > On 28.05.2008 10:44, Rasmus Lerdorf wrote: > > > Today's web developer is typically writing half their app in some variety > of Ecmascript, either Javascript or Actionscript and this array syntax is > second nature to all those folks. > > > >

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Derick Rethans
On Wed, 28 May 2008, Antony Dovgal wrote: > On 28.05.2008 10:44, Rasmus Lerdorf wrote: > > Today's web developer is typically writing half their app in some > > variety of Ecmascript, either Javascript or Actionscript and this > > array syntax is second nature to all those folks. > > I don't r

SV: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Hans Åhlin
>fyi - i added a RFC > >http://wiki.php.net/rfc/shortsyntaxforarrays > >please add your votes > >cheers > >Sebastian I'm +1. - Hans Å -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Antony Dovgal
On 28.05.2008 10:44, Rasmus Lerdorf wrote: Today's web developer is typically writing half their app in some variety of Ecmascript, either Javascript or Actionscript and this array syntax is second nature to all those folks. I don't recall any languages to introduce new syntax because it's so