note 27207 added to ref.overload

From: Date: Wed, 27 Nov 2002 09:59:00 +0000
Subject: note 27207 added to ref.overload
Groups: php.notes 
Request: Send a blank email to php-notes+get-40025@lists.php.net to get a copy of this message
I should properly not say it but personally i think that the language gets a little bit poluted with the use of all the __ in functions we could better use keywords for instance, your code gets more structured like: class testclass { get myname() { return $this->name; } set myname(&$value) { $this->name=$value } } and then you could access it like: $cTestClass = new testclass(); $cTestClass->myname = "Emile"; echo $cTestClass->myname; Also all the handeling of the properties is than not centralized but devided in seperate namespaced functions so easilier manageble. -- http://www.php.net/manual/en/ref.overload.php http://master.php.net/manage/user-notes.php?action=edit+27207 http://master.php.net/manage/user-notes.php?action=delete+27207 http://master.php.net/manage/user-notes.php?action=reject+27207

« previous php.notes (#40025) next »