Nim Programming: Nim Basics Episode 10
Nerd Rat
This episode is the continuation of Nim Basics Episode 1. This episode covers variables and constants with the assignment operator, the const
, let
and var
statements. Also control flow with the if-elif-else
, conditional compiletime execution with when
statement, multiple-decision with case
statement and scope creation and execution isolation with the block
statement.
At the end I explore the feature that allows you to write the control flow statements as expressions that yield a value you can assign to variables.
I made this with love, and I hope it is useful to you. Thank you!
2024-12-11
2.59646438 LBC
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
270015772 Bytes