Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What should we use for naming functions/variables/etc.? #2488

Panquesito7 started this conversation in Polls
Discussion options

I didn't notice early (thanks to @realstealthninja for spotting this), but we don't have a rule/convention of what should we use for variables and functions: PascalCase, camelCase, or snake_case.
What do you think we should use? Feel free to vote in the poll below. 🙂

What should we use for naming functions and variables?
PascalCase
20%
camelCase
40%
snake_case
40%

5 votes

You must be logged in to vote

Replies: 1 comment

Comment options

What about template parameters and macros?

I would stick to what is suggested in Cpp best practices. My personal preference leans towards the convention used in the standard library and BOOST (i.e. the second style from the link above). Have a look at C++ Core Guidelines.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /