Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Named constants (including enumeration values) #1

Closed
simonlynen opened this issue May 6, 2013 · 4 comments
Closed

Named constants (including enumeration values) #1

simonlynen opened this issue May 6, 2013 · 4 comments

Comments

@simonlynen
Copy link
Contributor

Alternatives:

  1. Named constants (including enumeration values) must be all uppercase using underscore to separate words. DAYS_IN_A_WEEK
  2. Mixed case starting with upper case: DaysInAWeek (ROS)
  3. Use a k followed by mixed case: kDaysInAWeek. (Google)
@stephanemagnenat
Copy link

I vote for one, as it is the most used convention as far as I have seen.

@markusachtelik
Copy link

I'd vote for 1) as well. 3) seems weird …

@simonlynen
Copy link
Contributor Author

as Hannes is probably guessing right, the "k" might be German influenced... how bad :D

@furgalep
Copy link

Sounds good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants