Small Programs
Hello World
print("hello from tython")
Simple State
var count: int = 0
count = count + 1
Function
func add(a: int, b: int) -> int {
return a + b
}
Record
record Point {
x: int
y: int
}
const ORIGIN = Point {
x: 0
y: 0
}
Error Handling
try {
print("safe path")
} catch err {
print("fallback")
}