|
|
|
|
|
by jeffdavis
4902 days ago
|
|
"How is it that referential transparency..." That was incorrect, I meant: "the kinds of metaprogramming associated with homoiconicity are mutually exclusive with referential transparency". A macro could not, for instance, take a variable name as an argument and return a result that's based on the value of that variable and maintain referential transparency. So that would be a pretty weak macro system. I suppose there may be other uses for homoiconicity, but I don't know enough about lisp to comment on that. |
|
(def a 10) (def b 20) (or a b) => 20
Is `or` not referentially transparent?