From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.devel Subject: Re: New assoc-let package Date: Sat, 6 Dec 2014 14:58:36 -0500 (EST) Message-ID: <87a930lfcr@ristopher.com> References: <87mw72q5z2.fsf@lifelogs.com> <87wq65rov9@ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417896798 14957 80.91.229.3 (6 Dec 2014 20:13:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2014 20:13:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 06 21:13:11 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XxLj5-0003mP-3j for ged-emacs-devel@m.gmane.org; Sat, 06 Dec 2014 21:13:11 +0100 Original-Received: from localhost ([::1]:55439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxLj4-0001BB-Ki for ged-emacs-devel@m.gmane.org; Sat, 06 Dec 2014 15:13:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxLVc-0008W0-Jf for emacs-devel@gnu.org; Sat, 06 Dec 2014 14:59:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxLVX-0001Yd-Pr for emacs-devel@gnu.org; Sat, 06 Dec 2014 14:59:16 -0500 Original-Received: from ristopher.com ([81.4.108.209]:47508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxLVX-0001YX-Ja for emacs-devel@gnu.org; Sat, 06 Dec 2014 14:59:11 -0500 Original-Received: by ristopher.com (Postfix, from userid 0) id EBBE820294; Sat, 6 Dec 2014 14:58:36 -0500 (EST) In-Reply-To: (Artur Malabarba's message of "Sat, 6 Dec 2014 19:24:33 +0000") Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 81.4.108.209 X-Mailman-Approved-At: Sat, 06 Dec 2014 15:13:08 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179212 Archived-At: Artur Malabarba writes: > On 6 Dec 2014 11:36, "Christopher Schmidt" wrote: >> The inability to meaningfully nest different assoc-let forms makes >> the macro inflexible. > > What would you consider meaningful nesting? Being able to access the > variables of the outer macro inside the inner macro? Yeah, that is what I meant. Maybe the macro can support optional args that specify the keys to be used. (assoc-let .foo .bar alist1 (assoc-let .rms .gpl alist2 ; foo and bar bound to alist1 ... ; rms and gpl bound to alist2 Maybe the name alist-let is more appropriate than assoc-let or assq-let as this facility is of the same kind as alist-get.