Ron - whose postings I normally agree with :-) - wrote:
>Ignoring case, the extension count, and the possible naming styles, is
>as follows:
>word_word_word: 65
>wordwordword: 24
>word_wordword: 21
>
>Some extensions use more than one style, but the one most often
>used is word_word_word. Many functions fit into word_word, which
>is not affected one way or another by observing the most common
>thread in naming.
>
>The standard seems to already be in place.
I'll grant that you have shown that word_word_word is the most popular
format in use, which gives weight to the argument that the underscore should
be how we do it, but this falls far short of a standard because those words
are not obeying sensible rules.
We have a random mix of ext_verb_noun and ext_noun_verb, a mixture of verbs
which do the same job, and a motley assortment of other subtleties on the
end of or inserted into function names. That's before we start looking at
the order of the arguments.
The fact is (with no blame attributed anywhere - the way the software has
evolved has made this more or less inevitable) that the namespace is grossly
self inconsistent. I have to look at the manual much more often than I do
with other languages I use. The business of whether to use underscores or
studly caps is just a matter of personal preference, and it is MUCH more
important to get the language consistent than to bicker about that kind of
detail (which, in extremis, could even be made configurable, or multiple
options supported if a consensus could not be reached).
I know that Zak has been doing some experiments along these lines, but has
also been busy on other projects. Any news to report Zak?
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
--
PHP Development 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]