On Wed, 2011-01-12 at 20:58 +0100, Per Jessen wrote:
> sono...@fannullone.us wrote:
> > I'd like to make a suggestion for a change, or possibly an addition,
> > to the PHP language.
> > 
> > I'm learning PHP and have been very excited with what it can do in
> > relation to HTML.  But when I got to the part about arrays, I was
> > disappointed to see that they are designated with a $ the same as
> > other variables.  I was learning Perl before I switched, and it uses
> > the @ sign to designate an array.  That makes it a lot simpler to see
> > at a glance what is an array and what isn't - at least for beginners
> > like me.
> > 
> > Has there been any talk of adopting the @ sign for arrays in PHP?  Or
> > is that symbol used for something else that I haven't read about yet?
> > 
> > What is the proper channel for making suggestions like this?
> The php-development mailing list.  What you're suggesting is a pretty
> fundamental change, don't be disappointed if it is not met with
> universal approval.
> -- 
> Per Jessen, Zürich (5.9°C)
not to mention, the @ symbol is a reserved character... an error control
character[1].   So I dont think that using that char, would work.  I
dont see using it's own character to work at all, but in your own code,
you can use your own naming conventions to denote what is an array, and
what is a variable.

Good luck with your suggestion, I personally wouldn't like it (as I am
so used to the way it is now), but that is just me.


[1] http://ca.php.net/manual/en/language.operators.errorcontrol.php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to