Slang

Challenge

Create a programming language that has easy to understand Python-like syntax as well as execution speed on par with C and C++.

Solution

Slang is a compiled programming language in development that combines the simplicity of writing Python code and the execution efficiency of C and C++.

main {
fib1: int = 0
fib2: int = 1
@ i = 0, i < 10, i++ {
print fib1
tmp = fib2
fib2 += fib1
fib1 = fib2
}
}
Printing the first 10 Fibonacci numbers in Slang