Super simple, command-line dice roller written in Nim
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Esteban Manchado Velázquez ecc1805fa5 First commit 5 years ago
.gitignore First commit 5 years ago
Makefile First commit 5 years ago
README.md First commit 5 years ago
dr.nim First commit 5 years ago

README.md

Nim Dice Roller

Just a small experiment to learn Nim. It's a command-line dice roller that supports aliases (that can be created from the tool itself).

It doesn't use any advanced Nim features, but it was a good exercise to get used to the syntax and to the static (although with inference) typing. I liked the little I saw: the syntax feels quite lightweight (a mix between ES6 and Python), but it has static typing (without the need to spell out every type, thanks to the inference!) and proper macros (somewhat like Lisp, but having a “normal” syntax). I got to use at least one macro (the =~ operator) but not write one.

To be honest, in my totally unscientific tests the randomness didn't seem very good, so I don't know how practical/useful this program will really be. Then again I built it to learn, so I don't mind that much.