Since Nim 1.2 there’s also a with macro in stdlib, though for some reasons I’m not aware of it doesn’t seem listed in the stdlib’s ToC :/
with
Nice — I’ve been using Nim about 6 months and learned a few things reading this article.
Nim is a deep language, but it’s pretty good at progressive disclosure.
Since Nim 1.2 there’s also a
with
macro in stdlib, though for some reasons I’m not aware of it doesn’t seem listed in the stdlib’s ToC :/Nice — I’ve been using Nim about 6 months and learned a few things reading this article.
Nim is a deep language, but it’s pretty good at progressive disclosure.