Thistle
A modern, simplistic multi-paradigm language supporting object-oriented features
Hello World!
import IO
object Main
def main(): unit
IO.print("Hello world!")
end
end
# The language will look for a Main object defined, and call its `main` method
Variables
Variables can be mut
able, or immutable.
// cannot be changed, always constant
let PI = 3.14
// can be changed
mut counter = 0