Robert,
And I don't agree with it either. I like quick, but I don't like dirty.
I just thought from what I'd read on this list over the last year that
it was a goal. You may be correct that I misinterpreted the current
goals of the language, and I'll be happy if you are right. :-)
--David
-----Original Message-----
From: Robert Cummings [mailto:robert@interjinn.com]
Sent: Wednesday, November 05, 2003 3:09 PM
To: David Enderson
Cc: internals@lists.php.net
Subject: RE: [PHP-DEV] Proposal: Array syntaxI believe the ultimate goal of PHP is to have a "quick and dirty"
language that is easy to read, use, and learn. While
Rasmus's commentI complete disagree with the "quick and dirty" statement.
Maybe at one time, but I think a lot of effort has gone into
PHP in recent years to entertain consistency and quality. As
for the new syntax, shrug, I'm happy with the array()
function syntax, but could care less if it were implemented.
I guess I'm -0 :)Cheers,
Rob..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting | a
| powerful, scalable system for accessing system services | such as
| forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
FWIW- (And I understand I'm late chiming in on this thread)
I'm -1 on this syntax.
It's Perlish and ugly. It is not PHP syntax.
-Sara
FWIW- (And I understand I'm late chiming in on this thread)
I'm -1 on this syntax.
It's Perlish and ugly. It is not PHP syntax.
To continue to play devils advocate, I actually find it C-ish and nice:
char foo[] = { "a", "b", "c i told you so"};
George (thinking [] is pretty but disliking alternative syntaxes)
George Schlossnagle wrote:
George (thinking [] is pretty but disliking alternative syntaxes)
Ok, let me recap my short visit on this mailing list:
- Dangling commas in function calls were considered bloat
- Adding the local vars to
debug_backtrace()was silently ignored - A prettier array syntax was discarded because it's an alternative
On the other hand Sara Golemon wrote:
It's Perlish and ugly. It is not PHP syntax.
while e.g. private, catch, throw, final were introduced which are
Javaesque and ugly. They are not PHP spirit of a simple language. But
I didn't complain.
After all this I guess I have to maintain my own PHP branch and hope for
PHP6 to address some of my issues. Or switch to another language at some
point, because a language to me is a tool, not a religion.
Anyway, I wish everybody happy hacking,
- Chris
After all this I guess I have to maintain my own PHP branch and hope for
PHP6 to address some of my issues. Or switch to another language at some
point, because a language to me is a tool, not a religion.
This is exactly the point. Why waste so much energy on deciding how to
spell out your array definitions. The decision has been made a long time
ago to use the array() syntax. Adding alternatives adds nothing but the
ability to save a few key strokes. (Personally, I would have preferred
the [] syntax, BTW)
Try/catch however are a fundamental extension to the functionality of
the language. Adding these was a good idea in my opinion. Borrowing the
syntax from Java/C++ was an obvious choice.
I can't believe you would seriously consider maintaining your own PHP
branch, only to be able to use dangling commas and [] array syntax.
-1 on both the array syntax and dangling comma issues.
--
Ard
Ard Biesheuvel wrote:
spell out your array definitions. The decision has been made a long time
ago to use the array() syntax. Adding alternatives adds nothing but the
I was under the impression that syntax changes are possible. Silly me.
Try/catch however are a fundamental extension to the functionality of
I couldn't disagree more. I don't think the language really needed it
but I'm on my own here, I know.
I can't believe you would seriously consider maintaining your own PHP
branch, only to be able to use dangling commas and [] array syntax.
Luckily all my patches are in the 2 to 10 lines range so 'maintain' is
too big a word for it. It was done once and I can benefit in all my
(thousands of lines of) PHP code now. The Apache/PHP build script
already has hooks for patches so little effort, big impact. The joy of
open source.
I was trying to give something back to the community but the community
didn't want it. Tough luck. PHP (and me) are going to survive it :-)
- Chris
Perlish or not could not be a real reason for adding or not adding a feature
in PHP. The important thing here is if it fits to the language concept or
not.
Kouber
"Sara Golemon" pollita@php.net wrote in message
news:20031105224100.44394.qmail@pb1.pair.com...
FWIW- (And I understand I'm late chiming in on this thread)
I'm -1 on this syntax.
It's Perlish and ugly. It is not PHP syntax.
-Sara