Re: private, protected, readonly, public

From: Date: Fri, 12 May 2006 17:41:02 +0000
Subject: Re: private, protected, readonly, public
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hartmut Holzgraefe wrote:
Bastian Grupe wrote: You didn't want to return $bar in your example, you wanted to return $this->bar so you already ran into one of the issues here ;)
Blame my recent use of Java here ;-) Well, I think the whole point of ppp is to having to use setters and getters consistently. I personally wouldn't like to be able to access some members which are private, and not others. It just *feels* wrong. And I don't know whether or not less typing is really a good argument in this situation (think unreadable code in shortcut-ish programming languages). -- Bastian

Thread (92 messages)

« previous php.internals (#23314) next »