Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Q: how to turn a list of symbols into a function?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Erik Naggum  
View profile  
 More options Oct 30 2000, 8:22 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.net>
Date: 30 Oct 2000 12:34:08 +0000
Local: Mon, Oct 30 2000 7:34 am
Subject: Re: Q: how to turn a list of symbols into a function?
* Rainer Joswig <jos...@corporate-world.lisp.de>
| It is simply a notation for lists:
|
| (list '+ pi pi)
|
| is the same as:
|
| `(+ ,pi ,pi)
|
| You can think of it as follows:
|
| In (list '+ pi pi) you have write the list constructing function
| (here LIST) and you have to quote the constants (here the symbol +).
|
| In `(+ ,pi ,pi) you write a list template and everything is constant
| - except in the places after the minus characters - so you are
| unquoting (-> forcing the evaluation at these places). So it is kind
| of opposite from the above.

  Except that the result of the backquote form is to be treated as a
  constant.  The list structure may not be modified as it might be
  shared with other list structures.

  (list ...) constructs a list at run-time.
  `(...) constructs at least parts of the list at read-time.

#:Erik
--
  Does anyone remember where I parked Air Force One?
                                   -- George W. Bush


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.