Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk how people feel about this comment after
#endif
but it's a long-held personal preference of mine ...https://github.com/johnkerl/scripts/blame/main/fundam/hdrtop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eddelbuettel sorry to be cryptic.
Just an 11-year-old script which shows that every time I create a header file I want to do
:.!hdrtop %
invim
which makesshowing that I've had this stylistic preference for long enough to have automated around it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superflouous at the end of a file like this that has one and only exactly one header guard.
But in principle I like comments at the end of long and nested 'end' or closing brackets.
Lastly for the case of header guards: the cool kids switched to
#pragma once
to not have this problemVery lastly too minor an issue to worry. But if you feel strongly about it and have the urge to touch umpteen files go for it.