Updated Nim for Python Programmers (markdown)

This commit is contained in:
Alexander Ivanov 2019-01-14 17:08:27 +02:00
parent 07ecdf6080
commit 9bc6355c53
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ In Python there are no pointers (everything is treated as a reference).
While Nim does give you pointers, Nim gives you other, safer tools for your everyday needs, while pointers are mostly reserved for interfacing with C and doing low-level system programming.
Contrarily to Python, most Nim code can be executed at compile time to perform meta-programming.
You can do a lot of the dsl-s possible with Python decorators / metaprogramming with Nim macros and pragmas.
(And some stuff that you can't!). Of course this requires some different patterns and more type safety.
### Arrays