Re:Lisp evangelists that miss the point about syntax
by jules on Thursday February 04, 2010 @11:43AM
(#1100871)
Sexps are better than strings because they are more structured. It would be even better to represent code with separate data types for every construct instead of the relatively unstructured sexps.
[ Parent
| on HN ]
Re:Lisp evangelists that miss the point about syntax
by lispm on Thursday February 04, 2010 @12:09PM
(#1100967)
s-expressions are an external syntax. You can create any data structure you want from them, given the right reader.
S-expressions are not INTERNAL to Lisp, only external. Thus s-expressions are defined on characters. Comparing s-expressions to strings makes no sense.
The representation of code is a different issue. You could read an s-expression and represent it internally as a string.
Re:Lisp evangelists that miss the point about syntax
by stcredzero on Thursday February 04, 2010 @12:00PM
(#1100931)
Just having a special delimiter for code blocks helps tremendously. If you stop there, and don't add more syntax, you're just about at Smalltalk.