From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: [elpa] main 2ec80977e1: * elpa-packages (dired-preview): New package Date: Fri, 14 Jul 2023 10:13:32 +0200 Message-ID: <049E8AF5-2141-48E6-9188-7B3AA0B60910@acm.org> References: <168884609732.27984.6450580686777461843@vcs2.savannah.gnu.org> <20230708195457.95F1AC11DD8@vcs2.savannah.gnu.org> <87zg43iprw.fsf@posteo.net> <87h6q7zmcy.fsf@protesilaos.com> <87fs5rpnbv.fsf@posteo.net> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14176"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , Protesilaos Stavrou , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 14 10:14:46 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qKDws-0003Ts-Fr for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jul 2023 10:14:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKDvs-0001ym-IK; Fri, 14 Jul 2023 04:13:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKDvq-0001yJ-Rc for emacs-devel@gnu.org; Fri, 14 Jul 2023 04:13:42 -0400 Original-Received: from mail154c50.megamailservers.eu ([91.136.10.164] helo=mail50c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKDvo-0006qx-H7 for emacs-devel@gnu.org; Fri, 14 Jul 2023 04:13:42 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1689322416; bh=tfbxLUJgshAYeOKGW5FwQL0nsEvPtEYx6+nLHlFC+oY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=dt/BnaNedfEAnapiGrtjWb+77EyeSXV+1Eep1xeAxfm/YL3KbPFundtxdRgTmHZN7 7H3Zn3l9cyGobqOp1vOQoiNxTfYpYek3ihoIHwTBrtnHvZwvCgAcSygfaaBI7nK7Ek Iks6uHvfdgY4AkL/478aOYTnKbMTFjs5CiRx1nWE= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se [188.150.165.235]) (authenticated bits=0) by mail50c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 36E8DW4f108031; Fri, 14 Jul 2023 08:13:34 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: -100 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrfeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffquffvqffrkfetpdfqfgfvpdfgpfggqdevhedtnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepofgrthhtihgrshcugfhnghguvghgnohrugcuoehmrghtthhirghsvgesrggtmhdrohhrgheqnecuggftrfgrthhtvghrnhepveekffdujefhkeehvdfgffeikefghfefvdekueffleegfeekueelhfejieefkefgnecukfhppedukeekrdduhedtrdduieehrddvfeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudekkedrudehtddrudeihedrvdefhedphhgvlhhopehsmhhtphgtlhhivghnthdrrghpphhlvgdpmhgrihhlfhhrohhmpehmrghtthhirghsvgesrggtmhdrohhrghdpnhgspghrtghpthhtohepgedprhgtphhtthhopehmohhnnhhivghrsehirhhordhumhhonhhtrhgvrghlrdgtrgdprhgtphhtthhopehphhhilhhiphhksehpohhsthgvohdrnhgvth dprhgtphhtthhopehinhhfohesphhrohhtvghsihhlrghoshdrtghomhdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehg X-Origin-Country: SE Received-SPF: softfail client-ip=91.136.10.164; envelope-from=mattiase@acm.org; helo=mail50c50.megamailservers.eu X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307859 Archived-At: 13 juli 2023 kl. 23.36 skrev Stefan Monnier : > - `mapc` also works on other sequences such as vectors and strings. Right. This also makes it less type-safe than `dolist` in practice: if = fed a string by accident, `mapc` will happy iterate over a sequence of = numbers instead of signalling a wrong-type-argument error. `mapc` is also less safe, in a different sense, if recursed through = since it could overflow the C stack if the `max-eval-lisp-depth` safety = catch is off. Using `dolist` typically results in slightly shorter code to write, = which more importantly means less code to read. Most people also prefer = seeing the list argument on top instead of buried after the loop body.