Skip to content

variables

abinition edited this page Oct 22, 2014 · 4 revisions

Identifiers

HS variable names (identifiers) are case-sensitive strings consisting of one or more characters formatted as follows:

  1. Must begin with an alphabetic character, "_", or "$".
  2. Cannot be a HS keyword (e.g. a type declaration).
  3. Can contain a colon that separates a namespace from a tag, ie: "namespace:tag"
  4. Must not exceed 64 characters.

The following are valid identifiers:

  • foobar
  • xmlns:soap
  • $recipe
  • LIST
  • _lotid
  • _
  • x500

The following cannot be used as identifiers:

  • 0data
  • list
  • lot.id
  • foo~bar
  • a name
  • if
  • :tag:

An identifier can also be a string of any characters enclosed in single quotes. When enclosed in single quotes, identifiers can contain any ASCII characters. Names can be up to 64 characters long and are case-sensitive.

The following quoted strings are valid identifiers:

  • 'lot id'
  • '&Enter value'
  • '@^@'
  • 'list'
Clone this wiki locally