On Wed, Jun 1, 2011 at 12:35 AM, Michael Shadle <mike...@gmail.com> wrote:

> 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.
>

AFAIK, it was because they didn't want to maintain/implement it. Don't know
if this was before the patch was provided.


>
> 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.
>

Weird, I didn't mean to reply privately, must have mistaken the reply to all
button. Anyhow, I did say it tongue-in-cheek, but the shorter syntax is
easier on the eyes for the nested case. Just FTR I'll copy most of my email
here:

----
Stolen?, why not learned?. Java has great architectural stuff and if wasn't
for other languages (and developers educated on them) we wouldn't have stuff
like exceptions, reflection, and —in the future— traits. You write as if PHP
could not or should not improve, and that is a very wrong attitude to have
IMHO.

The shorter syntaxes are more readable and thus an improvement. You said:

"Is it hurting anyone to type out "array()" or something?"

I say its hurting lots of people's eyes (and wrists on the long term, tsk
tsk). But its not going to be an obligatory syntax, you will always be able
to use "array()" if you enjoy it; personally, I don't, and I don't think the
proposers and supporters enjoy it that much either.

---

Regards,

David

Reply via email to