First, why not go the opposite way and standardize the syntax - why
not make object() or Object() work like array() or Array()?

$person = object('name' => 'Justin',
    'city' => 'ogden',
    'state' => 'ut',
    'country' => 'usa',
    'favoriteNumbers' => array(4, 12, 37, 42),
    'unluckyNumbers' => array(6, 13, 21),
    'likesPhp' => 'very much so'
);

Then you maintain consistency instead of relying on specific
characters. That makes more sense than trying to make shorthand for
something so basic to the language. I remember moving from Perl to PHP
I remember thinking "what the hell? Everything is a $, how do you make
hashes?"

Secondly,

"Second, we broke syntax highlighters, IDEs, and so forth when we
introduced namespaces"

Don't get me started on namespaces. :)

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

Reply via email to