1
0
2024-06-19 00:09:47 -04:00
2024-06-19 00:09:47 -04:00
2024-06-19 00:05:58 -04:00
2024-06-18 21:44:22 -04:00
2024-06-04 14:47:15 -04:00
2024-03-22 17:22:39 -04:00
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
	  }
}
Description
Fast, safe and easy-to-use language for general-purpose programming.
Readme 14 MiB
Languages
Rust 99.6%
Shell 0.2%