At 4/25/2001 09:02 PM, Reuben D Budiardja wrote:
>The only thing that I feel lack of in PHP is the real Object
>Oriented stuff, such as information hiding in the object in
>classes i.e. private and public variables, methods/functions.
>
>This in a sene make it really difficult for developer to build
>an API for other developers that is secure. I myself have this
>problem. Is there any reasons why PHP was designed like this
>from the beginning? Is this issue going to be addresses somehow
>in the future? Anyone has any idea?
>
>If anyone has any idea, or tricks to hide information in a
>variables or method in a class, or in other words, make a
>variable or method a private, I would really like to know.
>Thanks for any comments.
Python also does not do information hiding, but people rarely call
Python's OO features as not real. :-) It's a matter of choice,
though, I don't see any real hindrance of PHP implementing this
in the future version.
As Rasmus said, PHP does not have introspection (once again, unlike
Python which is very "introspective"), this is less of a problem,
especially with function calls API.
What I *really* like to see in PHP is:
- NAMESPACE
- TRACEBACK INFO
- exception (try-except block)
- $obj->method()->anotherMethod()
- real destructor would be nice, but not extremely important for
the time being, due to the nature of PHP usage in Web pages
Please tell me it's on the top'ish of the TODO list :-)
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]