Re: Very poor Lisp performance



Jon Harrop wrote:
and there's no simple QUOTE operator

What does the quote operator do?

Basically allow you to create symbols (unique values that can be compared for equality) and to create lists verbatim, so you don't have to create them with (list ...) or cons.


- things keep evaluating until they stop changing unless wrapped in special Hold forms that have to stick with it to keep
it from evaluating in the future.

Yes. I thought that was a direct equivalent of QUOTE.

Hm, dunno. Quote is for creating Lisp values (lists etc.). If you don't quote, the list you write is evaluated.


In Lisp macros, I think you need quote, so you can create symbols like IF, FUNCALL and others (literal function or variable names), because without quote they'd be evaluated right away.

--
I believe in Karma.  That means I can do bad things to people
all day long and I assume they deserve it.
	Dogbert
.



Relevant Pages

  • Re: newbie Q: opposite of quote
    ... (eval (quote a)) ... a first Common Lisp lesson. ... you can use lists as short as you want. ... symbols, set, setq, setf, psetq, psetf. ...
    (comp.lang.lisp)
  • Re: [opensuse] Re: Running a program as root from desktop panel
    ... poor that I can't remember what the thread is about I can always scroll ... On other mailing lists, the system always ... I use an official Mozilla extension called "Quick Quote". ... But doesn't this sort of defeat the purpose of bottom posting? ...
    (SuSE)
  • Re: [OT] Why do people detest top posting so much?
    ... messages before it at the bottom of your message. ... you must quote in order to make your reply clear, quote only the point to which ... Not to mention that the Tom Thumb example above is by far not the ... worst I have seen on this list and on a good number of other lists. ...
    (Ubuntu)
  • Re: Newbie - what does the apostrophe character do in Scheme?
    ... Did Scheme have a means to return the ASCII value of a character. ... I read quote and list seem to do much the same thing, ... Thorne an array is dimensional and can be variable. ... elements could themselves be lists or other objects. ...
    (comp.lang.scheme)
  • Review: AFIs 100 Years...100 Movie Quotes (2005) (TV)
    ... 100 Years, 100 Movie Quotes ... the AFI lapdanced on the Bogie/Bergman masterpiece and fawned all over the Rhett/Scarlett tripe. ... If the #1 spot on these AFI lists isn't occupied by 'Casablanca', you can bet your house it'll be taken by 'Gone With The Wind'. ... I'd give it a spot somewhere in the Top 10, fine, but that's not a line people quote very often anymore. ...
    (rec.arts.movies.reviews)