Professional Web Applications Themes

[PHP-DEV] reflection api -> camelcaps - PHP Development

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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php...

  1. #1

    Default [PHP-DEV] reflection api -> camelcaps

    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

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    George Guest

  2. #2

    Default Re: [PHP-DEV] reflection api -> camelcaps

    Hello George,

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

    No objections. Strong agreement.'


    --
    Best regards,
    Marcus mailto:net

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Marcus Guest

  3. #3

    Default Re: [PHP-DEV] reflection api -> camelcaps

    On Tue, 2 Dec 2003, George Schlossnagle wrote:
     

    yes

    Derick

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Derick Guest

  4. #4

    Default Re: [PHP-DEV] reflection api -> camelcaps


    On Dec 2, 2003, at 1:18 PM, Derick Rethans wrote:
     
    >
    > yes[/ref]

    Care to elaborate?

    George

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    George Guest

  5. #5

    Default Re: [PHP-DEV] reflection api -> camelcaps

    George Schlossnagle wrote: 

    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/

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Sebastian Guest

  6. #6

    Default Re: [PHP-DEV] reflection api -> camelcaps


    On Dec 2, 2003, at 1:22 PM, Sebastian Bergmann wrote:
     
    >
    > Why deviate from PEAR CS in this?[/ref]

    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

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    George Guest

  7. #7

    Default Re: [PHP-DEV] reflection api -> camelcaps

    On Tue, 2 Dec 2003, George Schlossnagle wrote:
     
    > >
    > > Why deviate from PEAR CS in this?[/ref]
    >
    > 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.[/ref]

    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

    --
    com

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Adam Guest

  8. #8

    Default Re: [PHP-DEV] reflection api -> camelcaps


    On Dec 2, 2003, at 1:51 PM, Adam Maccabee Trachtenberg wrote:
     
    >>
    >> 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.[/ref]
    >
    > 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.[/ref]

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

    George

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    George Guest

  9. #9

    Default Re: [PHP-DEV] reflection api -> camelcaps

    On Tue, 2 Dec 2003, George Schlossnagle wrote:
     
    > >
    > > yes[/ref]
    >
    > Care to elaborate?[/ref]

    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

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Derick Guest

  10. #10

    Default Re: [PHP-DEV] reflection api -> camelcaps



    On 12/2/03 7:51 PM, Adam Maccabee Trachtenberg wrote: 
    >>
    >>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.[/ref]
    >
    >
    > 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.[/ref]

    ext/dom and ext/xsl use camelCaps as well

    chregu
     

    --
    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 | ch | gnupg-keyid 0x5CE1DECB

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Christian Guest

  11. #11

    Default RE: [PHP-DEV] reflection api -> camelcaps

    > From: Derick Rethans [mailto:net] 
     
    > >
    > > Care to elaborate?[/ref]
    >
    > 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)[/ref]

    There was an argument raised by Marcus a while back. The main point was that
    PHP's lack of preserving of case would be a major draw back to studlyCaps.
    However since he solved the issue the discussion faded away (for obvious
    reasons).

    Regards,
    Lukas

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Lukas Guest

Similar Threads

  1. Reflection map?
    By Pelleyoo in forum Macromedia Director 3D
    Replies: 6
    Last Post: April 16th, 05:09 PM
  2. C++ Reflection Problems
    By Ray Deese in forum ASP.NET Web Services
    Replies: 2
    Last Post: May 12th, 03:13 AM
  3. Self Reflection
    By Beth Haney in forum Adobe Photoshop Elements
    Replies: 3
    Last Post: August 1st, 02:41 PM
  4. Reflection on COM object.
    By Lars Nielsen in forum ASP.NET General
    Replies: 6
    Last Post: July 18th, 10:13 AM
  5. Reflection and SqlConnection
    By WebDevHokie in forum ASP.NET General
    Replies: 1
    Last Post: July 10th, 06:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139