Status: Implemented & Canonical
TechScript is dynamically typed. Variables do not have fixed types, but values do.
Represents 64-bit signed integers:
count is 42
negative is -100
Represents 64-bit floating-point numbers:
pi is 3.14159
temp is -12.5
UTF-8 encoded string sequence:
message is "Welcome to TechScript"
Logical values:
is_running is true
has_errors is false
Represents the absence of value:
data is null
Ordered list of values (can contain mixed types):
items is [1, 2, "three", true]
Key-value storage:
configs is {
"host": "localhost",
"port": 8080
}
Objects instantiated using class and new:
class Dog:
name is ""
to init(name):
self.name becomes name
my_dog is new Dog("Fido")
For more information, see Classes.