Identifiers

  • Any string of letters, digits, and underscores
    • Letters in ranges A-Z and a-z
  • Cannot start with a number
  • Avoid identifiers starting with an underscore followed by an uppercase letter
    • reserved for special uses in Lua
  • Do not use reserved words in the language i.e. for, while, if, else, etc.
  • In general
    • use meaningful names
    • use camel case to allow the reading of meaningful names