pippijn / yaccpp

YACC macro preprocessor
1 stars 0 forks source link

Introduction of namespaces #2

Open elfring opened 11 years ago

elfring commented 11 years ago

I suggest to add at least one namespace to the source files of your class library.

Examples:

Would you like to reduce the probability for name clashes?

pippijn commented 11 years ago

Since yaccpp is a program and not a library, I'm a little reluctant to add namespaces. The global namespace is the program namespace. Can you explain what you mean by line 3 of lexer.h and line 3 of parser.h?

elfring commented 11 years ago

Would you like to place any components into a software library which will be reused by your program (and eventually others in the future)?

pippijn commented 11 years ago

Perhaps, yes, but right now there isn't much code in this project that might be reused. If it can be, I'll certainly think about splitting it out into a library.