From: Andreas A. <a.a...@th...> - 2001-07-08 15:02:12
|
Hi Alex, > on monday I'll be changing some important variable names, [..] Cool. Very good. > Class Vars: > varname > I have not defined public/private class vars as php doesn't support them - > is anyone in favor of making an artificial distinctoin similar to the > private class names? > like: > Private Class Vars: > _varname Hmm, for the moment I don't see a reason. But with ZendEngine 2.0 it may be supportet but then they would be specially marked i guess (private $varname). So a special naming convention isn't really neccessary. But there should be an convention that classvars should only be accessed by getVarname(), setVarname() methods. So this implies all that all varnames without an accessor are private ones. I had a talk with some guys from Zend at the german LinuxTag. ZE2.0 can be implemented in a timeframe of several months as soon as all specs are final. Other feautures planed with engine 2 are (* not yet final): - multiple Inheritances* - private member vars* - static member vars - exception handling (throw, try, catch) - destructors - new objects model (similar to java, variables contina object handles instead of the objects) - improved OO Apis (java objects, com) - internationalization (multilingual error messages, unicode, non western charsets) Andi |