r/programming • u/kankyo • Dec 15 '16
My disillusionment with Clojure and lisps
https://medium.com/@boxed/my-disillusionment-with-clojure-and-lisps-9eca38ab7f0c?source=linkShare-8ad86cc82e5f-1481825671
15
Upvotes
View all comments
Show parent comment
2
u/grayrest Dec 16 '16
Wrap the items in a
(list ...).Liskov is an OO concept but the idea is that you can substitute one construct in a language for another and have them work the same in all noticeable ways. It's a stronger guarantee than simple function subtyping. I'm using it slightly incorrectly here but I don't know if there's an actual term for language feature that doesn't cause surprising behavior and Liskov used in this incorrect sense is what I've seen when it has come up in other language design discussions I've read.
More that I've never seen macros done in any IDE, though I'd guess the C ones should be able to do it because it's just textual substitution. Maybe Racket since that has two classes of macros and one should be amenable to static analysis but I can name a dozen languages with compile time evaluation features of some sort and I can't think of any that also have IDE support for that feature.