RFC: namespaces

Dag-Erling Smørgrav des at linpro.no
Mon Feb 27 14:56:58 CET 2006


"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
> "Dag-Erling Smørgrav" <des at des.no> writes:
> > For instance we could assign the two-letter code "lo" to the logger;
> > logging functions would be named e.g. vlo_emit(), and log-related
> > preprocessor macros would be named e.g. VLO_LEVEL_DEBUG.
> Sounds a bit like overkill to me, but if it makes you happy I can
> live with it.

Well, the alternatives are worse IMHO:

open_log(const char *);         /* conflicts with libfoobar */
varnish_open_log(const char *); /* too long */
open(const char *);             /* oops */
vlo_open(const char *);         /* that's better! */

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-dev mailing list