Skip to content

Some small stuff#368

Merged
texus merged 8 commits into
texus:1.xfrom
jjuhl:some-small-stuff
May 21, 2026
Merged

Some small stuff#368
texus merged 8 commits into
texus:1.xfrom
jjuhl:some-small-stuff

Conversation

@jjuhl
Copy link
Copy Markdown
Contributor

@jjuhl jjuhl commented May 20, 2026

No description provided.

jjuhl added 2 commits May 20, 2026 19:46
Inline variables are a mandatory core language feature in C++17, so
there's no longer a need to check, we can assume it's available.
@texus
Copy link
Copy Markdown
Owner

texus commented May 20, 2026

I'm a bit torn about the "Remove some redundant access specifiers" commit.

While it's technically correct, I've always preferred to separate functions and members and I've abused the access specifiers a bit to be the title for each group (due to it being on a different indentation). Ignoring "protected" for simplicity here, you would have 4 groups inside a class:

  • public functions
  • private functions
  • public variables
  • private variables

Each group would start with an access specifier. Since public variables often doesn't exist, it did lead to "private" being repeated for the functions and variables section.

So while I'm not heavily against the change, I still have a preference for the duplicate access specifier as small extra indication that you switch from functions to variables.

@jjuhl
Copy link
Copy Markdown
Contributor Author

jjuhl commented May 20, 2026

I don't feel strongly about it. It's just something I've never done myself and I noticed it, so I cleaned it up.
Feel free to keep or drop the commit as you see fit and I'll go with whatever you choose in the future.

@texus
Copy link
Copy Markdown
Owner

texus commented May 20, 2026

Then at least for now it would be best if you just dropped that commit.

@jjuhl
Copy link
Copy Markdown
Contributor Author

jjuhl commented May 20, 2026

I'll drop it and update the PR tomorrow. 🙂

@jjuhl jjuhl force-pushed the some-small-stuff branch from 01ef488 to 76e7ec1 Compare May 21, 2026 16:50
@texus texus merged commit 8205ec0 into texus:1.x May 21, 2026
15 checks passed
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.

2 participants