From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: dolist considered harmful Date: Wed, 31 Oct 2018 18:44:54 -0400 Message-ID: References: <877ehxsrji.fsf@portable.galex-713.eu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541025830 27867 195.159.176.226 (31 Oct 2018 22:43:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 22:43:50 +0000 (UTC) Cc: Stefan Monnier , Emacs developers To: "Garreau, Alexandre" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 23:43:46 2018 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 1gHzDE-00077U-Sn for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2018 23:43:45 +0100 Original-Received: from localhost ([::1]:33893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHzFL-0003Rb-0e for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2018 18:45:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHzEc-0003OW-Gx for emacs-devel@gnu.org; Wed, 31 Oct 2018 18:45:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHzEb-0006UW-Kb for emacs-devel@gnu.org; Wed, 31 Oct 2018 18:45:10 -0400 Original-Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:35245) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHzEb-0006So-FZ for emacs-devel@gnu.org; Wed, 31 Oct 2018 18:45:09 -0400 Original-Received: by mail-ot1-x32c.google.com with SMTP id 81so346125otj.2 for ; Wed, 31 Oct 2018 15:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IuTFkccqMmRXHt6bmPbMYIXS8QYu+eM7ip53sAeGRbs=; b=d2hAQ6Q/KIchvdMS/iE8AflWxj9m9EN3xc20htkXxizTA+LryRIP4B+ZnzdokcJNO8 IU0Eqo6h0Mo5cRek9O+63fETTkEaewFVCVqpzAucbJcfouPeBfebQAEkX0KcSZX92UUk Lb3tebGHG+V03qFpo5lGhVyepptAN3s+GF/tI/3WB1QscFJUJkzxpfUR6aVJdiiy/6xz 58Y5cOY5Luwd2lxnmQ0lCtYZTjt0h/n0Gje7ZhYlaBDaAFHAhf1/aZT0ea8QhfKrSDkq f8oGZoF06K8zNl7TtiIct7eKFlnmdnNuL1CZ1psCcFFErbqToQKAPhm4yLqvVOf/cKUq D94A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IuTFkccqMmRXHt6bmPbMYIXS8QYu+eM7ip53sAeGRbs=; b=aJeRpuPEu8JNhfSOknnAEcDj9Xxe0tKa9JANXCMmBeVuJH3d86qWntucMZYpsSWfNj 2zy2zl1aNPITOibajcDJg4UWqj94TlyFBtRBfbeKiXCZk8MawcUQH6STJO9ddmL0vmiT aXaFNFwKCWw0onA9LY13Wu9HsizpLNNhX3gdk05nvfZIS0tCoA3Au9+uLilphqx/EfHx YDBd+EQl0opCL0aaDPeNYxaU7/IENLIyiJEUqIWSFfayH5BbOblr1wbEUITGJNruzDnU N0cfUSxEOsa+lYSZdhzGAi3ikqq1ERYgilHb4TXPUvndSe9kUy5/38/ib9jpL9jVanFN j7CA== X-Gm-Message-State: AGRZ1gI9p02j91nATrVu/Z8W7Ym8gkPfB8JIxe7To+hJIJTgTpYNspbN HapKDPfEnCZvs/CmtOo9FnjLhj10IPRrSJTs4uo= X-Google-Smtp-Source: AJdET5cuCitGVx+xSJt0/hjOgTQNUB98QXsbA5XPaD0mdpPe397NkkgTeAT8ToFUu1RvcrWKV8gcD8rasBfaQ8sTSQo= X-Received: by 2002:a9d:76c8:: with SMTP id p8mr2887341otl.113.1541025908757; Wed, 31 Oct 2018 15:45:08 -0700 (PDT) In-Reply-To: <877ehxsrji.fsf@portable.galex-713.eu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32c 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:230921 Archived-At: On Wed, 31 Oct 2018 at 18:10, Garreau, Alexandre w= rote: > > On 2018-10-30 at 14:39, Stefan Monnier wrote: > > All this pcase-dolist discussion made me take a second look at dolist > > and now I wondering whether we should keep it: > > This is still extreme: I never saw anyone suggesting to remove anything > about pcase or its derivative=E2=80=A6 but I can get quite distracted som= etimes > so maybe I missed it. Not pcase, but Alan talked about removing pcase-dolist and other derivative= s: https://lists.gnu.org/archive/html/emacs-devel/2018-10/msg00664.html If we can't get quality doc strings for pcase-dolist and friends, I say we should remove them from Emacs. There are only around 30 occurrences of pcase-dolist. > (btw is emacs tail-recursive?), Nope. Which is why recursion is not idiomatic. > I used `dolist', I first wanted to use recursion before someone noticed > me it was unnatural / strang / unidiomatic in elisp to do that,