From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Always using let* Date: Tue, 16 Sep 2014 09:41:09 -0700 (PDT) Message-ID: 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; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410885715 3013 80.91.229.3 (16 Sep 2014 16:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 16:41:55 +0000 (UTC) To: sokobania.01@gmail.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 18:41:48 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 1XTvp5-0007Lz-A5 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 18:41:47 +0200 Original-Received: from localhost ([::1]:39300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTvp5-0002lH-08 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 12:41:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTvok-0002l9-H2 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 12:41:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTvob-0004Tw-GU for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 12:41:26 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:43464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTvob-0004Rh-1s for help-gnu-emacs@gnu.org; Tue, 16 Sep 2014 12:41:17 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s8GGfBOw011678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Sep 2014 16:41:11 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s8GGfASJ004794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Sep 2014 16:41:10 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s8GGfAnt004753; Tue, 16 Sep 2014 16:41:10 GMT In-Reply-To: <732966c5-a667-4fc7-9d07-8da315862ce2@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:99963 Archived-At: > > In sum: If I use `let*' then look for a binding dependency. > > If I use `let' then don't bother to look for one. >=20 > I agree. >=20 > Some cases are intermediate. If I have several variables with "enough" > binding dependency, I use "let*". >=20 > 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)) > ...) Yup. Me too. Especially if any processing needs to be done after the bindings and before the assignments (setq).