# reflection api -> camelcaps

- Thread: https://externals.io/message/6000
- Original archive: https://news-web.php.net/php.internals/6000
- Started by George Schlossnagle on 2003-12-02T17:58:58+00:00
- Messages: 11
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6000 — George Schlossnagle — 2003-12-02T17:58:58+00:00

URL: https://externals.io/message/6000#6000

I'd like to convert the reflection API to the current php standard of 
CamelCaps (instead of underscores) for it's class and method names.  
Any objections?

George

---

## #6004 — Marcus Boerger — 2003-12-02T18:18:14+00:00

URL: https://externals.io/message/6000#6004 · In reply to: #6000

Hello George,

Tuesday, December 2, 2003, 6:58:58 PM, you wrote:

> I'd like to convert the reflection API to the current php standard of 
> CamelCaps (instead of underscores) for it's class and method names.  
> Any objections?

No objections.  Strong agreement.'


-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #6006 — Derick Rethans — 2003-12-02T18:18:50+00:00

URL: https://externals.io/message/6000#6006 · In reply to: #6000

> I'd like to convert the reflection API to the current php standard of
> CamelCaps (instead of underscores) for it's class and method names.
> Any objections?

yes

Derick

---

## #6007 — George Schlossnagle — 2003-12-02T18:22:37+00:00

URL: https://externals.io/message/6000#6007 · In reply to: #6006

> 
>
> > […]
>
> yes

Care to elaborate?

George

---

## #6009 — Sebastian Bergmann — 2003-12-02T18:22:48+00:00

URL: https://externals.io/message/6000#6009 · In reply to: #6000

George Schlossnagle wrote:
> I'd like to convert the reflection API to the current php standard of
> CamelCaps (instead of underscores) for it's class and method names.

  Why deviate from PEAR CS in this?

-- 
Sebastian Bergmann
http://sebastian-bergmann.de/                   http://phpOpenTracker.de/

Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

---

## #6012 — George Schlossnagle — 2003-12-02T18:42:23+00:00

URL: https://externals.io/message/6000#6012

> George Schlossnagle wrote:
> > […]
>
>   Why deviate from PEAR CS in this?

Well, as the classes are builtin's it's not so clear to me that the 
packag naming rules apply directly.  But this is a sound objection.

George

---

## #6014 — Adam Maccabee Trachtenberg — 2003-12-02T18:51:14+00:00

URL: https://externals.io/message/6000#6014 · In reply to: #6012

> 
>
> > […]
>
> Well, as the classes are builtin's it's not so clear to me that the
> packag naming rules apply directly.  But this is a sound objection.

This raises my question of my the new Exception class uses CamelCaps instead
of underscores?

For instance, its methods are: getMessage(), getCode(), etc.

I don't think any other built-in method or packaged extension does this.

-adam

-- 
adam@trachtenberg.com

---

## #6015 — George Schlossnagle — 2003-12-02T18:59:28+00:00

URL: https://externals.io/message/6000#6015 · In reply to: #6014

> 
>
> > […]
>
> This raises my question of my the new Exception class uses CamelCaps 
> instead
> of underscores?
>
> For instance, its methods are: getMessage(), getCode(), etc.
>
> I don't think any other built-in method or packaged extension does 
> this.

I've been re-pointed to CODING_STANDARDS, which changed since last I 
looked.  Classnames get underscores, method names get camelcaps.

George

---

## #6016 — Derick Rethans — 2003-12-02T19:01:30+00:00

URL: https://externals.io/message/6000#6016 · In reply to: #6007

>
> 
>
> > […]
>
> Care to elaborate?

Sure, i'll repeat what I said on IRC:
19:47 <@Derick> 1. it's not any standard
19:47 <@Derick> 2. it's ugly as hell
19:47 <@Derick> (it was 'standard' for a while but due to popluair demand we
                removed it from coding_standards)
19:57 <[GeorgeS]> Derick: didn't see the change to CODING_STANDARDS.
                  But that's a good reason.

Please have a look at the archives for this, as I remember having a
discussion about this too. IMO all internal functions use the underscore
way, so why deviate for methods? (This is as far as I go, no need to
discuss this again)


Derick

---

## #6023 — Christian Stocker — 2003-12-02T22:08:25+00:00

URL: https://externals.io/message/6000#6023 · In reply to: #6014

> 
> 
> 
> > […]
> 
> 
> This raises my question of my the new Exception class uses CamelCaps instead
> of underscores?
> 
> For instance, its methods are: getMessage(), getCode(), etc.
> 
> I don't think any other built-in method or packaged extension does this.

ext/dom and ext/xsl use camelCaps as well

chregu

> 
> -adam
> 

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  chregu@bitflux.ch  |  gnupg-keyid 0x5CE1DECB

---

## #6024 — Derick Rethans — 2003-12-02T22:12:01+00:00

URL: https://externals.io/message/6000#6024 · In reply to: #6023

> > […]
>
> ext/dom and ext/xsl use camelCaps as well

here it makes a bit sense because it's the Dom standard to do so and to
have the possibility to point at the dom docs instead of forcing the
developers to write documentation ;-)

Derick
