From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#28254: 26.0.50; SRFI-2 and-let* Date: Fri, 8 Sep 2017 20:33:55 -0400 Message-ID: <20170909003355.GA3363@holos.localdomain> References: <87a82kdb4e.fsf@holos> <87inh36sap.fsf@users.sourceforge.net> <20170902021043.GA7509@holos.localdomain> <878thx7qcc.fsf@users.sourceforge.net> <20170902041424.GA21189@holos.localdomain> <87tw0lzn7w.fsf@drachen> <20170902133604.GA27251@holos.localdomain> <20170904011356.GA21128@holos.localdomain> <20170905035548.GB11331@holos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1504917327 19597 195.159.176.226 (9 Sep 2017 00:35:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Sep 2017 00:35:27 +0000 (UTC) User-Agent: Mutt/1.9.0 (2017-09-02) Cc: Michael Heerdegen , 28254@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 09 02:35:20 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqTjm-00042F-8p for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Sep 2017 02:35:06 +0200 Original-Received: from localhost ([::1]:47756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqTjr-0001eP-Rb for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 20:35:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqTjl-0001dw-Dq for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 20:35:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqTji-0004YK-8w for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 20:35:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47908) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqTji-0004X4-3p for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 20:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dqTjh-0002CX-Or for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2017 20:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Sep 2017 00:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28254-submit@debbugs.gnu.org id=B28254.15049172478399 (code B ref 28254); Sat, 09 Sep 2017 00:35:01 +0000 Original-Received: (at 28254) by debbugs.gnu.org; 9 Sep 2017 00:34:07 +0000 Original-Received: from localhost ([127.0.0.1]:56589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqTip-0002BP-18 for submit@debbugs.gnu.org; Fri, 08 Sep 2017 20:34:07 -0400 Original-Received: from mail-qk0-f172.google.com ([209.85.220.172]:36183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqTil-0002Av-IJ for 28254@debbugs.gnu.org; Fri, 08 Sep 2017 20:34:04 -0400 Original-Received: by mail-qk0-f172.google.com with SMTP id z143so9907071qkb.3 for <28254@debbugs.gnu.org>; Fri, 08 Sep 2017 17:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TkpLytzI9RexWUJKFldu5VfhecsxGI+nC2YGAzegHUI=; b=ctoOcEmQorAFpEvEQbGPrWisV8SNdwh9gJiuqlvfYh/6JW1Il1HVr1myOIUt9wKRu5 uwfRrt9vl1TLsNbSU1BXVhrzFsABg3olNQzvKERdeqmkA3lc9NIYOtvaxeGcWiCXBmaj RI700vq7BPfCw0b9/ovVziBGGImmnBDNIFu242Q0qq+oRgHf/3KuXHJU2jGGNV9bJaTW /vRwf5GpvhPNWzMf0OygZPJYO3U1TApU79RLkRTluc9K3W3cuiTEnYuyjlnSG4USy6KC gUKOqdqnvE9pd+JGvp/cwr7JZ4SZvgN9kiHoQxgl0P1jYTIWGetSiKuj/UEuMXEmia0p e/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TkpLytzI9RexWUJKFldu5VfhecsxGI+nC2YGAzegHUI=; b=TEuxQo3Z5/CWZ2rYdzwtKT3NayWPPw+0C+LXRR6R7TXcX5Ws4oqamanpaPZ9ntiBIg olwaWBAdOc6DF7VPHnlTXUiVZ2n30PuMCBplEZRBSPLno1sLqCLTE7F1YGHG13wRMs6G DbWlh3UjKSxlp/lblRnI5tEyd4LlipDGA1mPmqR753vk8kRhESXSFv7BBayoHEEN64ho 4r6MS6iZf4Fb+dveWWDmHfDSxjj5l4RYtpE6kEG57AKMt+PriBWAsdlA1L8Q4SYVT7be ElCOoWPE+p0JaH4Top+/OBKLZEQRdxMaiv4Lfy/K3UTcKMSRD7A36p3U4mZh2R4iR+jl sy1w== X-Gm-Message-State: AHPjjUhEySvkmCMa9aN97UHCgghS/xvhuy3IFAEnCm7HuoS785YSSpvH hxVumuGyyR4GrXLZ2bEQuw== X-Google-Smtp-Source: AOwi7QBFiFvbkb8FS26nfRmTX8cQ3fbiC32+Mr3krRxQXsFj0zbmJ9xlEnNR6/eOeBxNzNog90N0qw== X-Received: by 10.55.149.70 with SMTP id x67mr6003919qkd.149.1504917237630; Fri, 08 Sep 2017 17:33:57 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id l11sm2148803qke.19.2017.09.08.17.33.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Sep 2017 17:33:56 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 8EED768E62; Fri, 8 Sep 2017 20:33:55 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20170905035548.GB11331@holos.localdomain> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136692 Archived-At: On 04/09/17 at 11:55pm, Mark Oteiza wrote: >On 03/09/17 at 09:13pm, Mark Oteiza wrote: >>On 02/09/17 at 02:41pm, Noam Postavsky wrote: >>>On Sat, Sep 2, 2017 at 9:36 AM, Mark Oteiza wrote: >>>>This single tuple special case is troublesome IMO: >>>> >>>>(if-let* (x) "dogs" "cats") => "cats" >>>>(if-let* (x (y 2)) "dogs" "cats") => (void-function y) >>>>(if-let* (x (y 1) (z 2)) "dogs" "cats") => "cats" >>>> >>>>I'm curious if this was brought up in the old discussion when this was >>>>implemented. >> >>FWIW, this was brought up in the original thread. >>https://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00228.html >> >>IMO the original suggestion of having if-let and when-let be exclusively >>single binding, while the starred versions excluding the single binding >>special case would be more sane. >> >>P.S. I just realized I didn't copy the tuple part of if-let* into >>and-let* in the patch I just sent, and therefore missed the problem this >>special case causes in tests. > >This is a patch implementing the above: if-let and when-let only take >single tuple, while {if,when,and}-let* lose the single tuple special >case. Any comments?