6 ms·
Other examples of things one can do with metaprogramming: async/await http://nim-lang.org/docs/asyncdispatch.html#async http://nim-lang.org/docs/asyncdispatch.h
by pathsjs 10y ago
Other examples of things one can do with metaprogramming: async/await http://nim-lang.org/docs/asyncdispatch.html#async http://nim-lang.org/docs/asyncdispatch.html#async , pattern matching http://andreaferretti.github.io/patty/ http://andreaferretti.github.io/patty/ , for/do comprehensions https://github.com/vegansk/nimfp/blob/master/tests/fp/test_forcomp.nim https://github.com/vegansk/nimfp/blob/master/tests/fp/test_f...
- jboy 10y ago... define decorator-like Nim pragmas that generate Python C-API boilerplate code for decorated Nim procs, to auto-generate type-safe, exception-safe, refcount-safe Python bindings for Nim? https://github.com/jboy/nim-pymod https://github.com/jboy/nim-pymod :)
- pathsjs 10y agoYes, I also wanted to add your library, but I was not sure how it works and to what degree it uses metaprogramming. But I am glad that you mentioned it! :-)