Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Lisp > Re: Newbie: Whe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 14 Topic 12464 of 13579
Post > Topic >>

Re: Newbie: When to use 'let' and 'setf' in CL?

by Edi Weitz <spamtrap@[EMAIL PROTECTED] > May 13, 2008 at 01:29 PM

On Tue, 13 May 2008 14:22:32 +0300, "Alex Mizrahi"
<udodenko@[EMAIL PROTECTED]
> wrote:

> nah, SET is cool:
>
> (defun initialize-user-parameters ()
>   (loop for (keyword variable) in *user-configurable-parameters* do
>        (awhen (get-user-configuration-parameter keyword)
>           (set variable it))))

  (setf (symbol-value variable) it)

would have exactly the same effect.

Edi.

-- 

Lisp is not dead, it just smells funny.

Real email: (replace (subseq "spamtrap@[EMAIL PROTECTED]
" 5) "edi")
 




 14 Posts in Topic:
Newbie: When to use 'let' and 'setf' in CL?
Mogens <gundorfslund@[  2008-05-11 14:41:14 
Re: Newbie: When to use 'let' and 'setf' in CL?
"milanj@[EMAIL PROTE  2008-05-11 05:53:25 
Re: Newbie: When to use 'let' and 'setf' in CL?
"Alex Mizrahi"   2008-05-11 16:19:49 
Re: Newbie: When to use 'let' and 'setf' in CL?
danb <sogwaldan@[EMAIL  2008-05-11 13:44:20 
Re: Newbie: When to use 'let' and 'setf' in CL?
Ken Tilton <kennytilto  2008-05-11 16:55:51 
Re: Newbie: When to use 'let' and 'setf' in CL?
usenet2.3.CalRobert@[EMAI  2008-05-11 15:11:12 
Re: Newbie: When to use 'let' and 'setf' in CL?
MasterZiv <masterziv@[  2008-05-12 01:58:39 
Re: Newbie: When to use 'let' and 'setf' in CL?
Chris Barts <chbarts+u  2008-05-12 16:21:19 
Re: Newbie: When to use 'let' and 'setf' in CL?
"Alex Mizrahi"   2008-05-13 14:22:32 
Re: Newbie: When to use 'let' and 'setf' in CL?
Edi Weitz <spamtrap@[E  2008-05-13 13:29:54 
Re: Newbie: When to use 'let' and 'setf' in CL?
"Alex Mizrahi"   2008-05-13 16:11:15 
Re: Newbie: When to use 'let' and 'setf' in CL?
pjb@[EMAIL PROTECTED] (P  2008-05-13 15:24:37 
Re: Newbie: When to use 'let' and 'setf' in CL?
Mikael Jansson <mikael  2008-05-14 12:36:31 
Re: Newbie: When to use 'let' and 'setf' in CL?
pjb@[EMAIL PROTECTED] (P  2008-05-15 12:17:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 7:49:48 CDT 2008.