Re: Shortening constant names

From: Date: Tue, 27 Jun 2006 07:32:25 +0000
Subject: Re: Shortening constant names
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43139@lists.php.net to get a copy of this message
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. - Martin

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