(WIP) Enact: A compiled programming language that's simple, familiar and fast.
Enact is a new compiled general-purpose programming language that's not designed to be unique or groundbreaking. Instead, Enact aims to be familiar, taking advantage of already established techniques and paradigms and making them nicer.
// FizzBuzz in Enact
func fizzBuzz(n int) {
for i in 1...n {
switch (i % 3 == 0, i % 5 == 0) {
case (true, false) => print("Fizz");
case (false, true) => print("Buzz");
case (true, true) => print("FizzBuzz");
default => print(n);
}
}
}