Re:Just what does “code as data” mean anyway? (2014)
by kamaal on Friday February 16, 2018 @10:52PM
(#16398871)
Sorry but again, using a workaround doesn't mean they are the same. When I mean same, I mean structurally.
Re:Just what does “code as data” mean anyway? (2014)
by joshuamorton on Saturday February 17, 2018 @12:11AM
(#16399167)
But they are structurally the same that's my point. I can implement -> practically directly. There is no structural difference that you've demonstrated.
That is not idiomatic and common in Python didn't mean that there is some structural difference. Basically the transformations you're describing are doable with regex, which is the opposite of powerful.
What you've done is take code is data, which is powerful, and confuse that with "supports varags", which is less powerful, and claim that the second is unique and powerful when it is not unique, and not uniquely powerful.
I expect that `->` is implemented in clojure in much the same way (and [1] implies that, modulo some scaffolding and error checking, it is, although with a recursive, inlined impl of reduce)
[1]: https://github.com/clojure/clojure/blob/08e592f4decbaa08de57...