Updated Nim for Python Programmers (markdown)
This commit is contained in:
parent
07ecdf6080
commit
9bc6355c53
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue