Re:Feature Macros, an Alternative to Feature Expressions in ...
by clojurian on Wednesday January 21, 2015 @09:49PM
(#8927259)
I didn't intend to be snippy or snarky ...
Fair enough; some of your comments here appeared to me to be dismissive and my perception was wrong. I should also say I want Niskin and Dipert's efforts here to be taken seriously and I don't want my comment to distract, and for that I apologize to them.
Re:Feature Macros, an Alternative to Feature Expressions in ...
by michaniskin on Wednesday January 21, 2015 @08:57PM
(#8927075)
So are there still things that "simply will not work as macros"? If so it would be interesting to see examples.
As for the "Representing EDN" design doc that I wrote. You're right to note similarity between tagged literals and feature expressions, however, I don't believe that they warrant the same tradeoff. One stated design goal of EDN is for intermediate processors to be able to handle self-describing data. They can already do that by defining a default tagged reader function. All I'm proposing there is that there be a single standard "uninterpreted" type, so that multiple intermediate processors can cooperate in handling self-describing data in the absence of special purpose tagged readers. Otherwise, each reader would need to perform an eager walk of each object to replace unknown types, and, by that point, they have no way of knowing what types they need to look for to replace in general.
By contrast, Clojure's reader already loses information necessary to represent Clojure source code as opposed to EDN data. The EDN data model is not rich enough on its own to represent code.