2.5. Identifiers

Qore identifiers must start with an alphabetic character, and then may contain any number of alphabetic, numeric, or "_" characters. There is no length limit on Qore identifiers.

All Qore identifiers are case-sensitive, therefore the identifier hello_there is not the same as Hello_There or HELLO_THERE.

The following are examples of valid Qore identifiers:

Table 2.3. Examples of Valid Qore Identifiers

Identifier

Description

i

Simple one-character identifier

foo21

Identifier with number

this_is_a_long_identifier

Long identifier with underline characters

Total_318

Identifier with underline and number

AVeryBigNumber

Mixed case identifier name

CAPS

Identifier in all capital letters


The following are invalid identifiers:

Table 2.4. Examples of Invalid Qore Identifiers

Identifier

Description

1a

Does not start with an alphabetic character

this-and-that

Contains "-" characters

Start#10

Contains "#" character