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: Sun, 3 Sep 2017 21:13:56 -0400 Message-ID: <20170904011356.GA21128@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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1504487745 17485 195.159.176.226 (4 Sep 2017 01:15:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2017 01:15:45 +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 Mon Sep 04 03:15:29 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 1dofz4-0003ar-Fn for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 03:15:26 +0200 Original-Received: from localhost ([::1]:46208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dofzB-0005WO-A8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Sep 2017 21:15:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dofyn-0005Lm-Ov for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 21:15:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dofyg-00044B-PD for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 21:15:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dofyg-00043Y-Ku for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 21:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dofyg-0004iX-9v for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 21:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Sep 2017 01:15:02 +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.150448764618051 (code B ref 28254); Mon, 04 Sep 2017 01:15:02 +0000 Original-Received: (at 28254) by debbugs.gnu.org; 4 Sep 2017 01:14:06 +0000 Original-Received: from localhost ([127.0.0.1]:47207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dofxl-0004h4-Nk for submit@debbugs.gnu.org; Sun, 03 Sep 2017 21:14:05 -0400 Original-Received: from mail-qt0-f180.google.com ([209.85.216.180]:33240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dofxk-0004gU-9A for 28254@debbugs.gnu.org; Sun, 03 Sep 2017 21:14:04 -0400 Original-Received: by mail-qt0-f180.google.com with SMTP id e2so17966139qta.0 for <28254@debbugs.gnu.org>; Sun, 03 Sep 2017 18:14:04 -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=OPLqwN/5oKoLdIafxNo41tGcVRQjsnqSa+46bDpo96A=; b=cwW0yyY20fvXyAJaQQJhgQeqz7M3x5sWDyYsJ71rAT5LkjZf8bRdi0hqIl1UGfxh48 oYcfyd5ilKR+p6QrXC2pkyDxwz88hNYJDX/DG84Etdp9PQJWs3A8+4GMDrJpTqByfUb7 Ny48dK+7E/C/Qvhyv9KNbh2jdrWdQYtgWwydHwPyOKjADs7vEaTKbfbdlAZlSjWr9UbQ oNJtHdlsyl8LagVKY2E5c+Qv1iu4WUQJcEtJvWQNRm1HH6qNbJClW9nL1ka1Xkh5EyTX EjT3e2OBLIIkVaiB1ZwBOvPIkV/dRAWjVMCnXiN0wgseUBvgiUzuZrb8DhL0IjHvM0+F 70GQ== 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=OPLqwN/5oKoLdIafxNo41tGcVRQjsnqSa+46bDpo96A=; b=BUHGvCkfapu3qtqu0Dm1mTKnNGkcoeAHyKyJWaEoI/NBlwbFSBva49vRzg7Ns1nvpN Tr6Rkz5pIguKKUXJYK66VU8TL8YNN7WvaTEcErafnUZhaPr5AI1fBL20q5HnirEHJRrC QOz0nGCRMtuTZ3Bn1ublchGSfkZQTbh1Is3sXDa+7yHZ7Dxfipr50cpmECjmMpQdrlA+ 41Lg8ceOvpk8W9UufPGTbqsJLASJR8AOYpwwAWd+eFb5RIxex9jxD6Yy9UNHV/PqJAlN 1nc69PmYI5nCxdxNQ+RNMRxIcFkrIuUctGTcasbMlhhA3aNSG1WgY4z3X4G5ZoI9YnPn CVcQ== X-Gm-Message-State: AHPjjUjA1/e1kTrnlzAj7Jkvk0c4AB6YMZqqArVom5fF9uDH78k9AUEj gKlxrPsmG8tZy2+iWX6n0A== X-Google-Smtp-Source: ADKCNb4sxsF3NLhNR9kgVUk5lTOmatg0ZSTV/B08xVXoEdrhFukEiZhvVXH9L/thP//MIqyOVw413g== X-Received: by 10.200.46.141 with SMTP id h13mr13322070qta.141.1504487637702; Sun, 03 Sep 2017 18:13:57 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-64-88-95.bltmmd.fios.verizon.net. [173.64.88.95]) by smtp.gmail.com with ESMTPSA id d58sm4250559qte.76.2017.09.03.18.13.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Sep 2017 18:13:57 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 719AC66207; Sun, 3 Sep 2017 21:13:56 -0400 (EDT) Content-Disposition: inline In-Reply-To: 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:136563 Archived-At: 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.