Learn nim
These are my notes from doing the Exercism track for Nim programming.
Compile
To compile a Nim program, use the nim command.
nim c -r file_name.nim
The you get an executable file that you can run, like so:
./file_name
Hello World Example
# File: helloworld.nim
echo "hello, world!\n"
nim c -r helloworld.nim
./helloworld
hello, world!
Run tests
To run unit-tests implemented for Nim
This can be used to run the tests for the exercises in the Exercism track for nim.
nim r test_exercise_name.nim