gcsl syntax update #1315
srliao
started this conversation in
RFC / Upcoming
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Short documentation of discussions/thoughts re #1148
Variables
A variable is a storage for hold a value. Set of permissible values is determined by the variable's type. Certain variable type can have the value
nilwhich has no type.Types
numberstringboolmapfncharacteractionmapA map is an unordered group of elements of one type, called the element type, indexed by a set of unique keys of another type, called the key type. The value of an uninitialized map is nil
fnA function type is the set of all functions with the same parameter and result types (the signature). Value of uninitialized variable of a function type is
nilfor example:
each of these is a distinct type
characterA character is a special type with the following special methods:
character.skill()whereskill()has typefn() actioncharacter.burst()whereburst()has typefn() actionIt is not possible to create new
charactersactionAn action is a special type with the following special methods:
action.exec(p)whereexec(p)has typefn(map)Beta Was this translation helpful? Give feedback.
All reactions