5 ms·
On a tangent, it's not only list-set-dict comps what makes Python interesting. The very simple and powerful approach to metaprogramming is very interesting as w
by koide 14y ago
On a tangent, it's not only list-set-dict comps what makes Python interesting. The very simple and powerful approach to metaprogramming is very interesting as well (all the magic __whatever__ methods, for example)
- tikhonj 14y agoScheme is also known for its simple and powerful meta-programming system: macros. Macros might be hard to fully understand at first, but the core idea is really simple. They're also extremely powerful: they let you change the actual syntax of a program and give you extremely fine-grained control over virtually everything.
- koide 14y agoI was referring only to this quote on the parent: > it is ugly Python, boring Python, without any hint of elegance it could be. No list-set-dict comprehensions, which is what makes Python interesting I disagree that list-set-dict comps is most of what makes Python interesting. Its meta programming is more interesting IMO. Not implying at all that Scheme has no meta programming or lacking meta programming. Instead I'd argue it's more powerful than Python's.