Naming
Names may start with any upper or lowercase letter (A-Z, a-z) or an underscore (_
). This may be followed by zero or more upper and lower case letters, underscores, and numbers (0-9). Names may not begin with a number.
// Valid: title-case
//
PersonID
// Valid: with underscore
//
token_name
// Valid: leading underscore and characters
//
_balance
// Valid: leading underscore and numbers
_8264
// Valid: characters and number
//
account2
// Invalid: leading number
//
1something
// Invalid: invalid character #
_#1
// Invalid: various invalid characters
//
!@#$%^&*
Conventions
By convention, variables, constants, and functions have lowercase names; and types have title-case names.
Last updated
Was this helpful?