Nim is a compiled, garbage-collected systems programming language which has an excellent productivity/performance ratio. Nim's design focuses on efficiency, expressiveness, elegance (in the order of priority).
foo:
and foo():
are the same in those 2 examples above?
:
as shown below:"?
template foo(inp: string; body1, body2, body3: untyped) =
case inp
of "a":
body1
of "b":
body2
else:
body3
untyped
?