It seems that there is no documentation about it, but I remember that it was years ago. Was it removed from Nim compiler at some point? 2017-07-29 16:41:46
No, they work. 2017-07-29 17:14:31
@LeuGim, I found old documentation, made an example and I see it working now, but I don't see any documentation about it... I thought maybe it is going to be deprecated or even removed completely at some point near 1.0 release or something... but to be fare it is a very neat feature, that I'm going to be actively using in my code... 2017-07-29 18:02:47
I hope there's no plans of deprecation/removal, docs are where there were, docs/manual/trmacros.txt. 2017-07-29 18:15:40
bpr
If you go to this super secret site, you'll find what you're looking for.
2017-07-29 19:47:10
@bpr, oh, it is in the manual now, I somehow missed it... sorry for that! 2017-07-30 06:39:34
it's not talked about that much, since it very useful but only in a few contexts. And it's also probably the best way to shoot yourself in the foot in the whole language.
2017-08-08 05:02:49

The usual TR macro problem is "ugh, not applied in this case because of sublte AST differences". The dreamed up problem by people who never use them is "ugh, the transformation introduced bugs".

I'm happy to reconsider my opinion when real bugs resulting from TR macros are reported.

2017-08-08 10:17:30