From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: New assoc-let package Date: Sun, 07 Dec 2014 11:25:47 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8761dnmnp0.fsf@lifelogs.com> References: <87mw72q5z2.fsf@lifelogs.com> <87wq65rov9@ristopher.com> <87a930lfcr@ristopher.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417969829 9709 80.91.229.3 (7 Dec 2014 16:30:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2014 16:30:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 07 17:30:22 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 1Xxeiy-0008LR-Op for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 17:30:20 +0100 Original-Received: from localhost ([::1]:58407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxeiy-00086Q-2t for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 11:30:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxeip-00086D-EW for emacs-devel@gnu.org; Sun, 07 Dec 2014 11:30:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxeih-00089M-Vy for emacs-devel@gnu.org; Sun, 07 Dec 2014 11:30:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxeih-00087D-PG for emacs-devel@gnu.org; Sun, 07 Dec 2014 11:30:03 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xxeih-0008BW-2j for emacs-devel@gnu.org; Sun, 07 Dec 2014 17:30:03 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2014 17:30:03 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2014 17:30:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:sbrSSHn2IfGrYnjMI5A+sT43zVQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:179272 Archived-At: On Sat, 6 Dec 2014 14:58:36 -0500 (EST) Christopher Schmidt wrote: CS> 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? CS> Yeah, that is what I meant. Maybe the macro can support optional args CS> that specify the keys to be used. CS> (assoc-let .foo .bar alist1 CS> (assoc-let .rms .gpl alist2 ; foo and bar bound to alist1 CS> ... ; rms and gpl bound to alist2 I think the CL package does this kind of magic using gensyms. I personally find it hard to examine in a stack trace, but really convenient as a user. CS> Maybe the name alist-let is more appropriate than assoc-let or assq-let CS> as this facility is of the same kind as alist-get. `let-assoc' so it starts with the functionality it provides, not with the data format it uses? Ted