Live data from Hacker News

Introduction to Metaprogramming in Nim

hookrace.net

11–12 of 12 posts

Re: Introduction to Metaprogramming in Nim

#11
post #10

Other examples of things one can do with metaprogramming: async/await http://nim-lang.org/docs/asyncdispatch.html#async , pattern matching http://andreaferretti.github.io/patty/ , for/do comprehensions https://github.com/vegansk/nimfp/blob/master/tests/fp/test_f...

... 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 :)

Re: Introduction to Metaprogramming in Nim

#12
post #11
post #10

Other examples of things one can do with metaprogramming: async/await http://nim-lang.org/docs/asyncdispatch.html#async , pattern matching http://andreaferretti.github.io/patty/ , for/do comprehensions https://github.com/vegansk/nimfp/blob/master/tests/fp/test_f...

... 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 :)

Yes, 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! :-)
Post reply on HN