Re: Shortening constant names

From: Date: Tue, 27 Jun 2006 19:29:19 +0000
Subject: Re: Shortening constant names
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43154@lists.php.net to get a copy of this message
Hi, Martin Jansen wrote:
On Tue Jun 27, 2006 at 09:2729AM +0200, Pierre wrote:
On 6/27/06, Martin Jansen <mj@php.net> wrote:
I agree. Let's stick with the current naming convention. Or if you really dislike the name, then port Structures_DataGrid to PHP 5 and use (shorter) class constants. ;-)
It was meant as joke, but in what Structures_DataGrid_Some_Constant is longer than Structures_DataGrid::Some_Constant? It is even shorter :)
If people access the constants from inside the defining class, they can use the self:: notation, which is significantly shorter. But this is nitpicking.
Well, I quite agree with all of you, but let me see... Our current constants, because they are prefixed with DATAGRID instead of STRUCTURES_DATAGRID, are not compliant, are they? Other point: I read in some more-or-less recent pear-dev post, that all names in PEAR will have to be prefixed with "PEAR", in the future. Is this going to happen? (I might buy a larger screen if that's the case ;-) -- og

« previous php.pear.dev (#43154) next »