Dal is a general-purpose programming language designed to be simple yet powerful. It is a statically typed language with a focus on performance and simplicity. It is designed to be easy to learn and use.
Warning
This project is still in early development and is not ready for production use.
Dal syntax is rust-like and easy to read.
import "std/io"
pub fn main() {
io.println("Hello, World!")
}
Generics allow you to write code that works for any data type.
fn sum[T](a: T, b: T) -> T {
return a + b
}
pub fn main() {
io.println(sum(1, 2))
io.println(sum(1.0, 2.0))
}
Dal can link to C library and use it in your code.
@link("c")
extern {
pub fn printf(__fmt: *const *const u8, ...) -> i32
}
pub fn main() {
printf("Hello, World!\n")
}
Read more about Dal in the documentation.
Dal is an open source project and contributions are welcome. If you want to contribute, please read the contributing guide.
Dal priority is to serve and help the community to build amazing things. That's why Dal using the most liberal license possible, the MIT license.