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?