Re:Just what does “code as data” mean anyway? (2014)
by joshuamorton on Friday February 16, 2018 @12:26PM
(#16393946)
Well 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.
> 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.