IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Datastructure vs string
'(foo bar) is a potentially complex data structure, while "(foo bar)" is a simple string.

It might be easier for you to understand if you translate it into another language. In Perl '(foo bar) would be written [$FOO, $BAR] (the capitals are to illustrate how Lisp is case-insensitive), while "(foo bar)" is the same in either language.

Does that make sense?

Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New Okay, I think I got it.
I suppose it is a "Lisp structure", which is basically a "pointer" version of Lisp code. Is there a way to turn a string into such a structure?

BTW, is Emacs-Lisp considered a "decent" Lisp? Stripped-down Lisp?
________________
oop.ismad.com
New More answers
To turn a string into a data structure you could use eval. You shouldn't have to do that very often though, because with macros and functions you can do what you might otherwise want to do with eval, and do it more cleanly.

As for eLisp, it is an older Lisp. It predates the acceptance of lexical scope, and so doesn't support things like closures. In my eyes that makes it a inferior, but YMMV.

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
     Emacs Lisp questions - (tablizer) - (16)
         Write TAP - (deSitter)
         Apostrophe-induced IFS! - (pwhysall) - (14)
             I got yer apostraphe, swingin -NT - (boxley)
             Your humor escapes me - (tablizer) - (12)
                 Re: Your humor escapes me - (pwhysall) - (2)
                     you seem bitter about something - (tablizer) - (1)
                         He seems bitter? - (folkert)
                 Peter's point is that you need to learn basic English - (ben_tilly) - (8)
                     Besides, it's no good for a quick emacs hack - (Arkadiy) - (7)
                         Answering the last question... - (ben_tilly) - (6)
                             But isn't LISP the ideal language to rewrite LISP in? :-) -NT - (tablizer) - (5)
                                 Yes, but it is still Lisp - (ben_tilly) - (4)
                                     double quotes - (tablizer) - (3)
                                         Datastructure vs string - (ben_tilly) - (2)
                                             Okay, I think I got it. - (tablizer) - (1)
                                                 More answers - (ben_tilly)

Is that a differential I see in my mirror?
67 ms