Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leading underscore from header guard methods. #548

Merged
merged 2 commits into from
Sep 2, 2016
Merged

Remove leading underscore from header guard methods. #548

merged 2 commits into from
Sep 2, 2016

Conversation

dirmeier
Copy link
Contributor

@dirmeier dirmeier commented Sep 2, 2016

According to http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier/228797#228797 leading underscores should be avoided at all.

Each name that contains a double underscore (_ _) or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use.

See our discussion on: http://stackoverflow.com/questions/39291133/how-to-change-header-include-guards-in-rcpp-interfaces/39291326?noredirect=1#comment65919759_39291326

@eddelbuettel
Copy link
Member

We have a document Contributing.md which you get reminded about before submitting. Allow me to quote from it:

Submitting a Pull Request

Considering submitting a pull request? It is strongly recommended that you first post an issue outlining some motivation for your pull request to ensure that some discussion around the appropriate resolution for the issue occurs first.

You didn't. Why?

@dirmeier
Copy link
Contributor Author

dirmeier commented Sep 2, 2016

Oh, I see. I am sorry. There has already been a pull-request:

#528

However, this does not fix the “leading underscore” issue.
I am sorry, I should have read the Contributing.md first. Just delete it then…was a one-liner anyways.

Best,
Simon

On 02 Sep 2016, at 17:12, Dirk Eddelbuettel <notifications@github.commailto:notifications@github.com> wrote:

We have a document Contributing.mdhttps://github.com/RcppCore/Rcpp/blob/master/Contributing.md which you get reminded about before submitting. Allow me to quote from it:

Submitting a Pull Request

Considering submitting a pull request? It is strongly recommended that you first post an issue outlining some motivation for your pull request to ensure that some discussion around the appropriate resolution for the issue occurs first.

You didn't. Why?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//pull/548#issuecomment-244403051, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APV2To-Tug0ywiHTSvLG6utEnd0QpE5Sks5qmDzKgaJpZM4Jzzdx.

@eddelbuettel
Copy link
Member

eddelbuettel commented Sep 2, 2016

So the polite way to go about this---which happens to be the one we documented and ask you to follow---is to first establish consensus that a change is desired before establishing how to achieve it. And that should precede throwing code over the fence. Sadly, you have done neither, I am tired of this and I am inclined to just close this here.

Maybe you get lucky and @jjallaire pipes and blesses your PR. We may even merge it. But please don't take that as encouragement for the still-wrong process you used.

@eddelbuettel
Copy link
Member

eddelbuettel commented Sep 2, 2016

@jjallaire blessed this (in private mail) so with that LGTM (and earlier pushes by @coatless to do the same) I will now give in and merge this...

@eddelbuettel eddelbuettel merged commit b8bb347 into RcppCore:master Sep 2, 2016
eddelbuettel added a commit that referenced this pull request Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants