3 ms·
I wasn't talking about whether macros are useful to everyone. The grandparent comment was dismissive without providing constructive criticism. Of course you c
by agentultra 12y ago
I wasn't talking about whether macros are useful to everyone.
The grandparent comment was dismissive without providing constructive criticism.
Of course you can implement yield-from in Python 2. Of course Hy generates Python AST. We know that. It doesn't make the yield-from macro any less interesting as I hope I've pointed out.
Update Perhaps it was the title that is misleading.
- klibertp 12y agoI was only referring to your last point, specifically this: > 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.
- agentultra 12y ago> 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.