IT lexicon › Programming › Identifier

Identifier

Programming På svenska → Updated: 2026-05-24

A name for something in the program — variable, function, class, module. The rules for valid names vary per language.

Classic rules: starts with a letter or underscore, then alphanumeric. Modern: Unicode identifiers allowed in most new languages (Java, Python, Swift) ⇒ you can have Chinese or emoji function names (controversial). Reserved words (if, while) can't be identifiers. Naming conventions: snake_case (Python, Rust), camelCase (Java, JS), PascalCase (types), SCREAMING_SNAKE (constants). Kebab-case only in contexts without a subtraction operator (Lisp, CSS).

← Back to the lexicon