All ColdC data has a type and a logical truth value it will return when evaluated as an expression. The following is a list of ColdC data types along with their names and literal representation in ColdC:
Type Name Representation Integer 'integer 42 Float 'float 1.0 String 'string "This String" Buffer 'buffer ` Symbol 'symbol 'identifier List 'list [1, 2, 3, 4] Object Number 'objnum #1234 Object Name 'objname $identifier Dictionary 'dictionary #[["key", $value]] Error Code 'error ~identifier Frob 'frob <object, value>
The type of data being manipulated can be determined using the type() function.
Tokens | Expressions | Statements