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: Tue, 30 Oct 2018 19:29:55 -0400 Message-ID: References: <86zhuvow6d.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1540942184 17175 195.159.176.226 (30 Oct 2018 23:29:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 23:29:44 +0000 (UTC) Cc: Stefan Monnier , Emacs developers To: Jay Kamat Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 00:29:40 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 1gHdS6-0004Lh-UJ for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2018 00:29:39 +0100 Original-Received: from localhost ([::1]:56047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHdUC-0005K6-Uz for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2018 19:31:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHdT0-0005Jb-PV for emacs-devel@gnu.org; Tue, 30 Oct 2018 19:30:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHdSu-0006Is-T2 for emacs-devel@gnu.org; Tue, 30 Oct 2018 19:30:33 -0400 Original-Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:41431) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHdSc-00067r-GI for emacs-devel@gnu.org; Tue, 30 Oct 2018 19:30:22 -0400 Original-Received: by mail-oi1-x233.google.com with SMTP id i10-v6so12054393oik.8 for ; Tue, 30 Oct 2018 16:30:10 -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; bh=ieNYSCy3UKnXJYNgQS78Eatzd3AQ/oMy8BhlCvpzLfQ=; b=ZWdQnq2lFR/S2EUh/7H4sgQoNla9sJ/fGXEXkEZn0lFxbKx19u87jAWsfVI3/rVdFq p3f+SQsE1vgHCO3F5FsSVTHHHR5z1cP7goUGYu9jEm/4xJFOl22tZ/Iz4W2PCLoWaiSC FRkDMITa/Kx2cAcFhHlySZ3V4SRAyz74lKPLs8PUZll5gPbg5yPXppc0UwYwU4QpX+k9 w8mIrmUkopfeq+OJYF2JM0QbdE5aljTb9777NChPeNQhTrIUy3wqmpZIOzUjLK5C5Y4X PB5qCKOZI/4X+5KASs22t+WelQM2hx6fbDw2arbYgdKjfz0g4Tm0SslOCAF507Sm9S4N jcdw== 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; bh=ieNYSCy3UKnXJYNgQS78Eatzd3AQ/oMy8BhlCvpzLfQ=; b=tBm7TjwT5BBElCxWgpE2smd1wKBs2eVtqTEmrOKTgAfeDZC+DeD99/WN89tGhF0pke aVZyeK1H+ge47pEs6O79gX1dISYKrxbON+YwXqIIVIocIGsUeIpz2IPInYZIoOarwSLd bVPzhY0NrqzLOOhdljC3msDFoNMluHlTFOkSY4Ms2gOftTPtxGveNtiWNT2JNsOMfczx VmJTLT78wuiN4M3eZrbZ88wFSRl4L9fIhODjAGo0kubTAxVShCQtrkho4rpxdq7eE48V xYgAjFkYPxZD6OeWP9qXLd1Y6SZ+CofNzhdI0UbWxQ75KIyNDBwsmVetZqChVKUMvlrC NGjw== X-Gm-Message-State: AGRZ1gJgRizAr6dtnrFH9lERiEYkERX3BdYzIsQlAZvZA2bm8aylFg8D CKtUOvqcL1z3MthHSHiKWKuy+51qDI3kB3ES4ys= X-Google-Smtp-Source: AJdET5eCoK7se10b5625yhsX1jjym3sftzWApSZxxt0jToYoeg1vNKdJDUoFrZ2tfwAsRYdSSoWFanDTbAKj4BOYzKE= X-Received: by 2002:aca:ba54:: with SMTP id k81-v6mr463328oif.177.1540942209816; Tue, 30 Oct 2018 16:30:09 -0700 (PDT) In-Reply-To: <86zhuvow6d.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::233 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:230860 Archived-At: On Tue, 30 Oct 2018 at 19:24, Jay Kamat wrote: > Stefan Monnier writes: > > > Since it can only be used when we're 100% sure that LIST is a LIST, > > (and who can be sure of such a thing in a dynamic language like Emacs > > Lisp), I think we'd be better off deprecating it and changing all uses > > of dolist with a clear while+cdr loop that everyone can understand. > > I haven't been following the other discussion, but I think deprecating dolist > is a little extreme. I think Stefan just forgot to add sarcasm tags to his message.