C++ Const Styling

I read about Google C++ Style Guide yesterday, I found an unexpected styling about constant.

I thought it would be like ALL_UPPER_CASE, but it suggests const int kDaysInAWeek = 7.

What is the k about anyway? It sounds like /k/ when pronounce const? I didn’t follow up.

Then I switch to solve a codewar problem called “Sure, but can you SKI? (I)”. The K combinator is defined as Kxy = x, and this behaves just like the const!

Is that just a coincidence?


  1. https://google.github.io/styleguide/cppguide.html
  2. https://www.codewars.com/kata/sure-but-can-you-ski-i

About delta

a lazy guy
This entry was posted in Programming. Bookmark the permalink.

Leave a comment