On 12/03/15 09:21, Arvids Godjuks wrote: > Basically this. > > Yasuo asked me some time ago how do I see the new interface, and to be > frank, I do not see a new procedural api interface at all. We have one > now, and adding a new subset of it looks pointless. It has it's problems > and legacy, you can't really fix it. Maybe some adjustments are in order > to make it more consistent where it can be done. > > I really see only the OO API as a new additional interface. It's part > started by the DateTime, the MySQLi classes and stuff. At this point all > that stuff can be still namespaced, adjusted if needed and continued, > just from the std library first. > I, actually, use _ for function and variable naming and camelCase for > object methods and properties. To be frank, I like it - it visually > clearly separates the code styles and for the most part the PHP code is > written that way (well, the MySQLi has ->num_rows and stuff - i'd change > it to ->numRows and so forth).
This is exactly the same point I've come to ... That MySQLi example is exactly what I am talking about. I know Postgres driver has been 'underscored' but it is THAT which is out of sync with the rest of the code base. interbase driver has the same problem, and we will need to bring in fbird_ to replace ibase_ there, but I use ADOdb almost exclusively which has been CamelCase since day one ( all be it with a leading capital ). PDO is camelCase but that has other problems ;) If there has to be any tidy up, like you, I think switching back to loose some underscores is the less painful option. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php