« Return to Thread: need a standard for contrib node build_mode constants

Re: need a standard for contrib node build_mode constants

by Chris Johnson-21 :: Rate this Message:

Reply to Author | View in Thread

Maybe I'm missing something here, but it's just as possible to
accidentally re-use a string constant as a numeric constant.  How does
using a string help things at all?  Either the developer reads and
enumerates a list of all existing uses and avoids collision -- or does
not -- regardless of whether they are integers, strings, or ice cream
flavors.

Please educate me!

..chris

On Tue, May 19, 2009 at 12:12 PM, John VanDyk <jvandyk@...> wrote:
>> To the contrary, Peter's proposition makes a very good standard to
>> avoid collisions, it's actually better than strings IMO.
>
> To really make it unique, you'd want to prepend your drupal.org uid and
> append your shoe size.
>

 « Return to Thread: need a standard for contrib node build_mode constants