[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lexical let and setq
From: |
Stefan Monnier |
Subject: |
Re: Lexical let and setq |
Date: |
Fri, 13 Sep 2013 23:46:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> The primary reason I have seen the (let (foo) (setq foo ...)) idiom is
> in looping code.
That one is OK, since recursion is not supported efficiently.
The problem is when people use the above because they're writing (poor)
C code in Elisp (e.g. they begin their functions with a big let
declaring all the local vars that they may use later on in the
function).
Stefan