5 ms·
Clojure is weakly heteroiconic and seems to have rough parity
by neutronicus 6y ago
Clojure is weakly heteroiconic and seems to have rough parity
- fiddlerwoaroof 6y agoClojure is “homoiconic”: Clojure source code is represented in terms of the data structures Clojure applications manipulate. There’s nothing preventing Common Lisp from having a similar surface syntax either: a couple read macros on [ and {, and a library of normal macros would be sufficient and could probably be written over a weekend.
- p_l 6y agoIn fact, since Common Lisp "source code" is NOT defined in terms of text but data structures (that happen to have standard serialization/deserialization) and that's the level that macros work on, you could theoretically even make semi-algolish syntax and still keep CL's macro system. It would just look weird as fuck.
- fiddlerwoaroof 6y agoLike https://readable.sourceforge.io https://readable.sourceforge.io ?
- p_l 6y agoThat's one example, not as crazy as what's possible. Though I have to say I dislike the indent based blocks :/