Re:How Hy backported “yield from” to Python 2
by agentultra on Friday November 21, 2014 @05:27PM
(#8643749)
> This is all true, but it's also very one-sided. It makes macros look like a universal solution to all abstraction problems and without any downsides at that.
They are a universal solution to the problem of abstractions: they let you use fewer abstractions!
> I also didn't read the GP comment as dismissive, it seems a bit pedantic at worst.
I can see that. I wasn't being very charitable with my choice of words. Apologies to GP.
> The point I'm making here is that you can do pretty much everything you want to do without macros. You'll just have to write quite a bit more code and come up with many more metaphors and analogies in order to get it to work. Macros just let you get straight to the point by extending the language.
This is all true, but it's also very one-sided. It makes macros look like a universal solution to all abstraction problems and without any downsides at that. Now, as I said, I don't really believe that the "downsides" are that important, but I wanted to add to your comment by pointing out their existence.
I also didn't read the GP comment as dismissive, it seems a bit pedantic at worst.