You can use defer for closing resources: [https://nim-lang.org/docs/manual.html#exception-handling-defer-statement](https://nim-lang.org/docs/manual.html#exception-handling-defer-statement)
- Python-like context managers and wizzardx
- Re: Python-like with, context managers, and the RAII pat... Tiberium
- Re: Python-like with, context managers, and the RAII... Arrrrrrrrr
- Re: Python-like with, context managers, and the ... pgmf
- Re: Python-like with, context managers, and ... wizzardx
- Re: Python-like with, context managers,... stisa
- Re: Python-like with, context manag... wizzardx
- Re: Python-like with, context m... Tiberium
- Re: Python-like with, context m... Udiknedormin
- Re: Python-like with, context m... Tiberium
- Re: Python-like with, context m... Udiknedormin
- Re: Python-like with, context m... Tiberium