Contra ... Not searchable through search engines That's a ridiculous argument.
PHP Short Syntax for Arrays: developers say no.
41–50 of 89 posts
Re: PHP Short Syntax for Arrays: developers say no.
#42Why try to make PHP more readable? Just use another language. PHP, like C++, is a big industry dinosaur that can't and won't change. In my opinion, the best think you could do is create a new language which compiles to PHP. I.e. A coffeescript for PHP. You don't have to "vote" and get stupid arguments against; you don't have to be backward compatible; and you only have great programmers in that project since crappy o…
But why not make it more readable? The patch exists - all it would take is for it to be accepted. And there are a ton of people who can't justify the switching costs of moving to a different language. And true, a lot of us aren't great programmers. So? Better tools help. And it's perfectly okay to build and improve tools that regular people will use. Even if they won't be creating the Mona Webapp. ;)
Re: PHP Short Syntax for Arrays: developers say no.
#43Re: PHP Short Syntax for Arrays: developers say no.
#44Earlier quoted context omitted.
> coffeescript for PHP Make this happen please. I can't think of a more deserving language and it'd make my day job a lot nicer.
Haven't had a chance to check it out, but here's an option: http://pypi.python.org/pypi/hotpotato
Re: PHP Short Syntax for Arrays: developers say no.
#45Note that the feature is under discussion for 5.4 and not rejected. Chances are actually extremely good that it will be in 5.4 in some form.
Re: PHP Short Syntax for Arrays: developers say no.
#46Contra ... Not searchable through search engines That's a ridiculous argument.
Not being SEO friendly is an interesting argument. While learning Python, when things like list comprehensions came up in code I was reading, it was very hard for me to figure out how it worked when I couldn't Google the syntax.
As far as language design goes though, I'd rather use a language that's optimized for writing code than for searching for it :).
Re: PHP Short Syntax for Arrays: developers say no.
#47This does not seem reasonable. I mean that literally -- this feels more like a choice driven by culture than by reason. The cons seem nowhere near strong enough to counter the fact that the overwhelming majority of users want this syntax, and have been asking for it for years.
It's like they don't even _want_ to fix the language.
Re: PHP Short Syntax for Arrays: developers say no.
#48Earlier quoted context omitted.
It's like they don't even _want_ to fix the language.
I catch myself feeling that way, too, but it is uncharitable and inaccurate. They do work a lot of work on developing the language. The issue is that sometimes their idea of what is should be differs from the idea that most people have.
Re: PHP Short Syntax for Arrays: developers say no.
#49Contra ... Not searchable through search engines That's a ridiculous argument.
Not when you consider how a large number of PHP programmers "program" on a day-to-day basis.
Oh, wait...