Re: Why is LISP syntax superior?
- From: "Wolfram Fenske" <int2k@xxxxxxx>
- Date: 24 Jun 2006 20:28:37 -0700
keke@xxxxxxx (Takehiko Abe) writes:
I think that either you like it or you hate it on the first
sight. Do not try too hard. It's futile.
[...]
Understanding macros is essential to appreciating the power of lisp,
though. IMO, if lisp didn't have its macro system, there'd be no
significant advantage over, say, Python and hardly any justification
for its (lack of) syntax.
So you tolerate the lisp's (non) syntax because of macros?
That's too bad. I guess I am a happier lisper than you.
If CL didn't have its macros, I'm pretty sure that one could find
another syntax that would lead to programs that are both shorter and
easier to read and understand than equivalent programs using s-expr
syntax. As I wrote in another post:
I think there are some cases where more syntax would be nice in
Lisp. [...] If I were to design a new programming language
without such a powerful macro system (not that I want that), I'd
probably not choose S-expressions because I think other
representations would be more suitable.
One example I gave were references to array elements. In Python you
write:
elem = seq[i]
seq[i] = new_elem
Where seq is a sequence type, i. e. a list, a tuple, a string or a
dictionary. In CL you have to write:
(let ((elem (elt seq i)))
...)
(setf (elt seq i) new-elem)
I'm sure there are other examples.
Wild guess: Some people don't like prefix notation perhaps
because they want to read the code aloud? It's not speech
oriented.
I don't know what you mean.
Wolfram
.
- Follow-Ups:
- Re: Why is LISP syntax superior?
- From: William James
- Re: Why is LISP syntax superior?
- From: Alexander Schmolck
- Re: Why is LISP syntax superior?
- From: Takehiko Abe
- Re: Why is LISP syntax superior?
- References:
- Why is LISP syntax superior?
- From: Juan R.
- Re: Why is LISP syntax superior?
- From: Takehiko Abe
- Re: Why is LISP syntax superior?
- From: Juan R.
- Re: Why is LISP syntax superior?
- From: Takehiko Abe
- Re: Why is LISP syntax superior?
- From: Wolfram Fenske
- Re: Why is LISP syntax superior?
- From: Takehiko Abe
- Why is LISP syntax superior?
- Prev by Date: Re: Do you remap your keyboard for lisp?
- Next by Date: Re: Celtk (well, OK, Cello/Tk) Screenshot for the Other JMc
- Previous by thread: Re: Why is LISP syntax superior?
- Next by thread: Re: Why is LISP syntax superior?
- Index(es):
Relevant Pages
|