Dec 19, 2015 at 9:32am UTC
Which do you prefer and why?
Which do you find more readable.
Dec 19, 2015 at 10:01am UTC
The way I look at it the first underscore is a replacement for the dot in the filename. I see no need to have an extra underscore at the end.
header.h
HEADER_H
Last edited on Dec 19, 2015 at 10:05am UTC
Dec 19, 2015 at 10:20am UTC
Yea I agree. I just noticed that a lot of files use the HEADER_H_ form so I was wondering why they do that
Dec 19, 2015 at 1:56pm UTC
I typically use EMS_HEADER_H. Initials plus header name, for the same reason I don't use using namespace std;
Less likely to suffer from a naming conflict.