. period for Class Syntax references
| From: | php at karsites dot net | Date: | Sun, 20 Mar 2005 22:09:54 +0000 |
| Subject: | . period for Class Syntax references | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15514@lists.php.net to get a copy of this message | ||
Hi all.
I don't know if this has been implemented yet.
Is it possible to make the '.' period character act
place of the '->' character pair in class references,
without conflicting with the '.' concatenation character?
Possibly would have to implement the two styles of
referencing to allow for backward compatibility?
So, instead of writing: $this->my_var, one could then write
$this.my_var, which would be alot more in common with other
OOP languages.
Maybe it's me, but I find it alot easier to read and
pronounce '$this.my_var' == $this dot my_var,
than something like
'$this->my_var' == $this right-arrow my_var
Or, even some other single character that may be used
instead of the '->' pair. Any suggestions please?
Regards - Keith Roberts
http://www.karsites.net/