Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Identifier name rules

From Coderwiki
Revision as of 10:28, 15 August 2025 by Dylan (talk | contribs) (new: info, general rules, identifier naming conventions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Different programming languages have different rules on how identifiers can be named.

General rules

In most programming languages, you must follow these identifier naming rules:

  • The identifier cannot contain spaces
  • The identifier can contain only numbers, letters and underscores
  • The identifier must not start with a number

Identifier naming conventions

While not rules, most programming languages have conventions you should follow.

There are also good practices to name your identifier as clearly as possible.

See: Identifier naming conventions