A simple imperative programming language which will bring love to your life!
func main() {
print("Hello, world!")
}
- Dynamically typed for easy prototyping
- Functional features for efficient programming
- Object implementation for basic and easy object-oriented use
- Easy syntax for easy learning
- And much more...
x := 6
print(x)
x = 2
print(x)
Functions extend from functional programming as there are lambdas (AKA anonymous functions) and closures.
func add(x, y) x + y
func sub(x, y) {
return x - y
}
main := func() {
print(add(5, sub(2, 3)))
}
Structures are the way to do some object-oriented programming in the language. They are similar to javascript objects.
person := struct {
name: "John Doe",
age: 37
}
print(person.name)