snowball-lang / snowball

🐱 Anything that can be written in Snowball, will eventually be written in Snowball

Home Page:https://snowball-lang.gitbook.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snowball

A fast, high-level programming language 🐱

Snowball provides a high-level, easy-to-use syntax for writing fast, efficient code. It is designed to be easy to learn and use, while still providing the performance of a low-level language.



One example to prove itself

Object-oriented programming, high-level abstractions, and low-level control are all possible with Snowball. Here's a simple example to demonstrate its capabilities:

// Generics and interface bound checks
func print<T: ToString>(x: T) {
  // A simple yet powerful standard library
  std::io::println(x);
}

func main() {
  let mut a; // Mutability safety
  a = 10; // Type safety and type inference
  let b = a; // Borrowing and immutability
  print(b); // Type inference to its best
}

About

🐱 Anything that can be written in Snowball, will eventually be written in Snowball

https://snowball-lang.gitbook.io/docs/

License:Other


Languages

Language:C 43.4%Language:C++ 31.2%Language:CMake 20.3%Language:Shell 5.1%