From 9bc6355c53a7e8f7d24bfa87356526aa34c107b4 Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Mon, 14 Jan 2019 17:08:27 +0200 Subject: [PATCH] Updated Nim for Python Programmers (markdown) --- Nim-for-Python-Programmers.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Nim-for-Python-Programmers.md b/Nim-for-Python-Programmers.md index 235656d..5070634 100644 --- a/Nim-for-Python-Programmers.md +++ b/Nim-for-Python-Programmers.md @@ -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