Search code examples
variablesv8naming

Why do variable names start with the letter 'k'?


such as kFastDtoaMaximalLength in fast-dtoa.h(Google v8)

is it represent kernel?


Solution

  • The "k" actually indicates that this variable is a constant (konstant?)

    It's a use of Hungarian Notation (http://en.wikipedia.org/wiki/Hungarian_notation)

    see: Objective C - Why do constants start with k