apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: enum and defines naming
Date Sat, 22 May 2004 05:04:39 GMT
At 08:02 PM 5/21/2004, Stas Bekman wrote:
>Before apr 1.0 is cast in stone any chance public enums and defines will get sensible
names?
>It all looks nice in the declaration but in the code, one needs to scratch the head to
figure out what APR_REG means. Why not have /^APR_FILETYPE_/ prefix? APR_FILETYPE_REG requires
no head scratching when reading the code and won't collide with some other enum with a totally
different functionality.

+1

>Same goes for defines, for example:
>There are all related to files, why pollute the namespace with such short names and not
fix them to have a sensible prefix similar to above suggestion? /^APR_FILETYPE_/ as in APR_FILETYPE_UREAD.


+1 again.  This is why 1.0 isn''t ready just yet, IMHO :)





Mime
View raw message