1
0
Programming language with a focus on ease of use, performance and correctness.
Go to file
2024-06-21 13:56:04 -04:00
dust-lang Add new function for EnumDeclaration 2024-06-21 13:56:04 -04:00
dust-shell Clean up and prettify parsing errors 2024-06-18 19:42:04 -04:00
examples Improve type inference 2024-06-19 12:03:25 -04:00
std Reduce ambiguity for function parsing 2024-06-18 21:44:22 -04:00
.gitignore
Cargo.lock
Cargo.toml
README.md

Dust

High-level programming language with effortless concurrency, automatic memory management, type safety and advanced error handling.

io.write_line("Guess the number.")

secret_number = random.range(0..100)

loop {
  	io.write_line("Input your guess.")

  	input = io.read_line()
  	guess = int.parse(input)

  	if guess < secret_number {
  	  	io.write_line("Too low!")
	  } else if guess > secret_number {
	    	io.write_line("Too high!")
	  } else {
	    	io.write_line("You win!")
	    	break
	  }
}