Re: StudlyCaps
| From: | George Schlossnagle | Date: | Wed, 03 Dec 2003 22:22:17 +0000 |
| Subject: | Re: StudlyCaps | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6151@lists.php.net to get a copy of this message | ||
On Dec 3, 2003, at 5:14 PM, Michael Walter wrote:
George Schlossnagle wrote:To be pedantic, the Python style guide (http://www.python.org/peps/pep-0008.html) specifies class names to be StudlyCaps and method names to be either underscore-delimited or StudlyCaps, at the authors leisure. Of course, PHP is not Python. GeorgeMy vote is on StudlyCaps for class method and attribute names. This is the standard in many OO languages (SmallTalk, C#, Java - as a parenthetical I don't think that SmallTalks adoption of StudlyCaps (one of the first I'm aware of) had anything to do with _ rendering), and while we do not need to mimic other languages, adopting common conventions is a good thing.On the other hand, there are Common Lisp (foo-bar-baz), Python (mostly foobarbaz) and Ruby (mostly foo_bar_baz).