3 ms·
> I see no reason what you just gave isnt isomorphic to > sum(1,2,sum(3,4)) > Which is not "code as data" Says who? In Prolog it would be. Whether or not
by kbp 9y ago
> I see no reason what you just gave isnt isomorphic to
> sum(1,2,sum(3,4))
> Which is not "code as data"
Says who? In Prolog it would be. Whether or not some syntax is a data structure literal depends entirely on the syntax of your language. Your example is isomorphic if you make the corresponding change to your language's data structure literals.
- joshuamorton 9y agoWell but that's my point. The given example doesn't take advantage of any code as data features. It's entirely user transparent whether code is data or not. As a motivating example for why one should use lisp, or what lisp brings to the table, it's very poor, because it is wholly unmotivating and doesn't appear to demonstrate anything unique.