Re: Shortening constant names

From: Date: Tue, 27 Jun 2006 07:25:05 +0000
Subject: Re: Shortening constant names
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43137@lists.php.net to get a copy of this message
On Mon Jun 26, 2006 at 05:0650PM -0400, Scott Mattocks wrote: > Olivier Guilyardi wrote: > >In Structures_DataGrid, could we use SDG instead of DATAGRID as constant > >prefix? > > If you do that, then how are other developers (people extending SDG or > people needing to compare a return value) that need to access the > constants supposed to know what they are named? I think it is better to > stick with convention for the sake of clarity. 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. ;-) - Martin

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