Skip to content

Conversation

@DaanDeMeyer
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added documentation please-review PR is ready for (re-)review by a maintainer labels Jan 1, 2026
@DaanDeMeyer
Copy link
Collaborator Author

Both myself and @yuwata prefer also using the comments in tests. @YHNdnzj is against. Opening this PR to allow more votes and opinions, please don't merge this immediately.

Good:

```c
myfunction(/* a= */ NULL, /* b= */ NULL, /* c= */ NULL);
Copy link
Member

@YHNdnzj YHNdnzj Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we discussed preference of /* comment = */ over /* comment= */ no? IIRC you and @yuwata are generally onboard with the former too, but the others disagree. Better to iron this out too if documenting this properly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I (slightly) prefer /* comment = */, but not strong opinion.

Better to iron this out too if documenting this properly

Yeah. I prefer consistent format of short comments, and that should be documented.
But, maybe better to not mix discussion here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't call it "mixing discussion"? Once this is in it becomes the standard, hence we need to figure out the details?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be pragmatic here, 99% of comments are /* comment= */ now. Let's not introduce more busywork replacing all of those with /* comment = */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frankly, I don't really touch test/ that often hence I won't bother that much with comment or not there. But I really despise /* comment= */...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be pragmatic here, 99% of comments are /* comment= */ now. Let's not introduce more busywork replacing all of those with /* comment = */

Yeah, because I made the format consistent.

@YHNdnzj
Copy link
Member

YHNdnzj commented Jan 2, 2026

OK, let me make myself clear: I don't intend to enforce /* comment = */ on everyone. I'd happily merge anything from say @poettering with a bunch of /* comment= */s. However, I personally insist on the former.

@yuwata
Copy link
Member

yuwata commented Jan 2, 2026

OK, let me make myself clear: I don't intend to enforce /* comment = */ on everyone. I'd happily merge anything from say @poettering with a bunch of /* comment= */s. However, I personally insist on the former.

My stance is slightly different, I prefer to use consistent comment format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation needs-discussion 🤔 please-review PR is ready for (re-)review by a maintainer

Development

Successfully merging this pull request may close these issues.

3 participants