You are here: Re: how do i avoid typing the keyword "$this->" every time inside a class « PHP Programming Language « IT news, forums, messages
Re: how do i avoid typing the keyword "$this->" every time inside a class

Posted by mootmail-googlegroups on 08/11/06 13:26

Richard Levasseur wrote:
>
> Why? I don't see how $ and -> has much effect on the market share.

I don't think it really does, either, but I just have to question the
wisdom of choosing the "->" over something like, say ".", which as you
said later in your post, some other languages have.

A "." is quick, simple, one keystroke, and my finger is right near that
key anyway.
A "->", on the other hand, requires me to move a finger to the numeric
row, then hold shift and hit another key (3 keystrokes vs 1).

As you mentioned, many other languages require scoping of class
variables vs local variables via a 'this', I think PHP just compounds
the issue with its choice of "->".

Yes, it's nice that it looks like an arrow and all, but can we leave
the ASCII art to the kiddies and instead make a language that favors
speed in writeability?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация