I don't really want to stand on my soapbox any longer, as it's obvious
where the crowd leans on this one, but I need to clarify a couple
points a bit and feel obligated to reply to another.

On Tue, May 31, 2011 at 10:15 PM, Stas Malyshev <smalys...@sugarcrm.com> wrote:

> Fundamental changes means "throw out your production code and start
> developing a new one". Guess how many PHP shops with existing code would be
> happy to do it. It's nice to rant about how PHP function are inconsistent
> and stuff, but no project was seriously impeded by it ever. At most it is
> mildly irritating. Huge BC break, on the other hand, would mean all major
> apps/libraries/frameworks become instantly not available, and who knows when
> they catch up. At this point, you might as well have a new language.

This is understood, but it was a crackpot example. IMHO, adding more
ways to express the same thing in a well-established language is more
or less the same. It's relearning something you thought you already
knew; yes, one breaks BC, but that is why you'd have to classify it a
different major version. I'm done on that one. Like I said, it's a
crackpot example.

> Since many experienced people are supporting it, I'd think that while it
> seems unnecessary to you, it may seem otherwise for them.

Many experienced people are also against it.

If a handful of "experienced people" decided to go forward with my
crackpot idea above, would you be in support, just because they are?

Also, you're implying that this is a *necessary* change for these
experienced people. Is there something I am missing that PHP is *not*
handling currently and requires this *necessary* change? (No)

> Read this (esp. first answer):
> http://stackoverflow.com/q/6162484/214196
>
> It's about Perl, but gives you an impression why it is so tough.

I figured it was tough, based on the amount of effort/time people
spent. Sad to see that it seems abandoned though.

> Why not? If the pieces are good, stealing them is good. It's how progress
> happens - you "steal" good pieces and add couple of your own, and hope the
> result is good enough that somebody else would want to steal stuff from it

While a language is maturing, I would probably agree. I consider PHP
quite mature now. I'd say the proof is in the pudding based on the
numbers.

My chief concerns are these:

IMHO, JSON-style syntax is *not* as readable as PHP array syntax. It's
shorthanding something that is pretty short as well.

Currently, if I want to find an array in code, I can search just for
"array" or "Array" or "=>" or variations thereof. This adds yet
another type of grep I have to run through. One that I am not sure can
be easily accomplished (wouldn't it be matching quite a lot more
because of it's bare nature? Now we've got to look up neat ways to
combine and grep for :?[]{} etc.) Also, now you have coders on the
same project using their personal preference.

If something isn't broken, why fix it? That was the basis on my
original comment about things that actually were underway or brought
up due to issues.

Before I get off my sandbox, and go back to the shadows on the dev
list, someone privately replied to me and said this will help because
it will "its hurting lots of people's eyes (and wrists on the long
term)" - I'm taking that as a joke.

I understand I can use the "long syntax" still. Great. But *why*
introduce a second one? I can't even read half the Perl I see nowadays
because people have shortcutted so much crap. As I've said PHP is my
bread and butter, please don't make life harder by making syntax
changes that enable developers to be more cryptic code. I'm a
minimalist myself, I like smaller chunks of clean code, but this idea
is *unnecessary* as nothing is broken. I can only imagine the poor PHP
developers bastardizing this so badly it takes hours to decypher what
they are trying to do.

I have a feeling this is getting adopted either way, but I feel
obligated as a user to ask "wtf?"

- mike

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to