Re: Class Naming in Core
| From: | Rowan Collins | Date: | Wed, 31 May 2017 12:35:03 +0000 |
| Subject: | Re: Class Naming in Core | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99294@lists.php.net to get a copy of this message | ||
On 31 May 2017 10:26:06 BST, Tony Marston <TonyMarston@hotmail.com> wrote:
>wrote in message
>news:86dba466-a764-522b-6990-39fd7668a79c@fleshgrinder.com...
>I should point out that snake_case was the universal standard decades
>before
>some people switched to CamelCase.
[citation needed]
Lisp, for instance, uses hyphens to separate words, and has don't since the 1950s.
> That was only because some software
>could
>not handle long names, but could handle both upper and lower case, so
>an
>upper case character was used instead of an underscore.
[citation needed]
I'm sorry, but this smells of folklore and guesswork to me. Both underscores and mixed case are
workarounds for the inability to include spaces in identifiers, and have their pros and cons, most
of which these days come down to opinions on aesthetics.
Regards,
--
Rowan Collins
[IMSoP]