1
0
General purpose programming language and shell
Go to file
2024-06-24 00:38:06 -04:00
dust-lang Fix function call bug 2024-06-24 00:38:06 -04:00
dust-shell Fix function call bug 2024-06-24 00:38:06 -04:00
examples Improve type inference 2024-06-19 12:03:25 -04:00
std Load standard library correctly 2024-06-22 11:50:44 -04:00
.gitignore Do not ignore generated tree sitter files 2023-11-28 13:53:33 -05:00
Cargo.lock Attempt to add JSON parsing 2024-06-04 14:47:15 -04:00
Cargo.toml Clean up 2024-03-22 17:22:39 -04:00
README.md Clean up example 2024-05-18 11:59:39 -04:00

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
	  }
}