From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Anaphoric macros: increase visibility Date: Sat, 14 Jan 2017 16:56:56 +0900 (JST) Message-ID: References: <87wpdyivvf.fsf@web.de> <87h9529n04.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1484380634 10887 195.159.176.226 (14 Jan 2017 07:57:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2017 07:57:14 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Michael Heerdegen , Emacs developers , Tino Calancha To: Dmitri Paduchikh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 14 08:57:08 2017 Return-path: Envelope-to: ged-emacs-devel@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 1cSJD0-00028R-Rg for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2017 08:57:06 +0100 Original-Received: from localhost ([::1]:46892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSJD5-0003kj-GH for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2017 02:57:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSJCy-0003ke-00 for emacs-devel@gnu.org; Sat, 14 Jan 2017 02:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSJCu-0000rm-WB for emacs-devel@gnu.org; Sat, 14 Jan 2017 02:57:04 -0500 Original-Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:35349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cSJCu-0000ra-QO for emacs-devel@gnu.org; Sat, 14 Jan 2017 02:57:00 -0500 Original-Received: by mail-pf0-x241.google.com with SMTP id f144so10969676pfa.2 for ; Fri, 13 Jan 2017 23:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=S9j11Iq6b9xXpBi7Vp9sT9eB4mnoK2rQFi38gHYUbWI=; b=kKhX33miTUjkBVqKPr1c5MoIuknGQBKZI21FIgKn/7ATABWA0X11TWnduXyoaICpF4 w1Mdjj5nO17vFQE9gllPYAqj7us5LMyWbyFyrdO1tO8EDg2MVtmQLUswlex9FQDMf60w xMJM+2XDD/HnKzh8AcWr7hVjc924D6k0K5YFzcurOl26vyk4gpBcX0niP85r2HTbXT46 XEWW9h/gUryMJVCbF8/BaZ+jZCgFoqzfXkUn1RdSsDTAM+S6fi/IaH7PgK1jpOujduIZ oWkGw3RvX7FXWVgDq07ID7zUvEevAgo2CrhqXTYBz4eoAxTFdkhqzCv3/wGl/GrVZdDH LMCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=S9j11Iq6b9xXpBi7Vp9sT9eB4mnoK2rQFi38gHYUbWI=; b=bWhRcpv4Sc2e4GsAqkX6np5K+oHw3mwgY2dDujEw1TnKKxSZLAsaXkPA9N/ZHyR1/g ZpvqHIKYi5NcOC6w7HAaVDpSEclJ+JAxJiSBZGmrS2mbjHqOkv3BUWTTe3WKZoEEqtkZ dh+OwVqWpAnnaYVzQcdmbAJPPQKVCKTyn6N7UGQBImd+a48/Esi6wgNAc1zSAb0LUxQ9 VxVA5AAWbU455Bp4DIuXaFD7siruGxItgAdaa8Dro4MYrwrH7pD8ka/vMIbpj2IH5u9g ATLgdwvoHIYniV7yHoz4EpuUEkuJp5XnPa9YmCko8wNfAJesI7R+Jrv93wi8J0J7TNA9 iKvg== X-Gm-Message-State: AIkVDXJPg2JMwOEwv4jR5+wShBgkkdwjQU/Vj2Ihcin0ztC6f1rUMfPzQ3Mt1/9t0KKxUQ== X-Received: by 10.84.143.34 with SMTP id 31mr14958628ply.81.1484380619619; Fri, 13 Jan 2017 23:56:59 -0800 (PST) Original-Received: from calancha-pc ([103.5.140.157]) by smtp.gmail.com with ESMTPSA id w76sm27905678pfd.74.2017.01.13.23.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 23:56:59 -0800 (PST) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <87h9529n04.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::241 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:211265 Archived-At: On Sat, 14 Jan 2017, Dmitri Paduchikh wrote: >Comparing if-it, when-it with if-let, when-let, it seems >clear that they represent different tradeoffs of simplicity vs. flexibility. Do we need to choose? We could have defined both kinds of anaphoric macros. A) The simpler one is easier to read/understand. B) The more flexible one allow us to write uniformly several related forms. If i need > 1 binding i would use B), and if i just need one binding probably i would rather prefer A). >This explicitness argument seems to be standard criticism against anaphoric >macros. But it's easy to fix by providing new names for these macros: if-it, >when-it, and so on. Besides being more explicit these names are more readable >than aif and awhen. Although I prefer your names, i.e., if-it than aif, it might be argued that there are historical reasons in favour of the latter. Regards, Tino