On Sat, Dec 06, 2003 at 11:45:12AM -0500, George Schlossnagle wrote: > >Why should methods differ from functions in naming? That in itself is > >inconsistency... > > > >I'm in favour of naming with underscores, simply because that was the > >PHP way until now and it helps readability a lot. > > This is not really true. In PHP4 there were very few internal classes, > so there was not much of a standard for naming class methods.
Again, why should method naming differ from function naming? > It seems that most of the folks who are siding behind using underscores > aren't very interested in using OO code, while the people who are using > OOP extensively already support StudlyCaps. My opinion may be biased > though. It is. One of the purest OO languages, Ruby, uses underscores to separate words in method names (I have to admit though that constants are named in CamelCase usually.) It's one of the reasons i prefer Ruby over most OO languages out there... > Huh? That's awful. Who supports that sort of magic? That's not much more magic than case-insensitive functions. -- Regards, Stefan Walk <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php