From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Always using let* Date: Wed, 17 Sep 2014 00:45:59 +0200 Organization: Aioe.org NNTP Server Message-ID: <87vbonuqu0.fsf@debian.uxu> References: <87fvfukmso.fsf@Equus.decebal.nl> <93faab1c-96bd-4188-9686-3869fc027601@default> <732966c5-a667-4fc7-9d07-8da315862ce2@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410907831 21594 80.91.229.3 (16 Sep 2014 22:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 22:50:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 00:50:23 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XU1Zn-0000e9-3b for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 00:50:23 +0200 Original-Received: from localhost ([::1]:41160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU1Zm-0006Am-MG for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 18:50:22 -0400 Original-Path: usenet.stanford.edu!newsfeed.news.ucla.edu!news.snarked.org!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: P0uMB9BthHuWo8+BJXB4Mw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:8scU1sg3anNiBDSkucN7GAPiZic= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:207694 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99966 Archived-At: sokobania.01@gmail.com writes: > If I have several variables with "enough" binding > dependency, I use "let*". > > But, quite often, I have several independent > variable, except one or two. So, I would use "let" > rather than "let*", but don't bind these variables > and then use "setq" in the body of the let: (let ((a > (val-for-a)) (b (val-for-b)) ... x y) ; depend on a b > (setq x (val-for-x a b)) (setq y (val-for-y a b)) ... > ) Why not use the let* for everything? Or nest a the let* and let - perhaps overkill... Because I don't see anything wrong with "independent variables" in let* (?). As long as there is one data item that is dependant - otherwise people reading the code will be confused why the asterisk is there, and start to look for it... -- underground experts united