From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.help Subject: Re: cl-loop - do you understand it well? Date: Sun, 11 Dec 2022 01:00:41 +0600 Message-ID: <87wn6zhyna.fsf@disroot.org> References: <87zgbwyp46.fsf@dataswamp.org> <87k02zkrzw.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 20:02:04 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1p456q-00087C-3G for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 20:02:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p456K-00012F-B1; Sat, 10 Dec 2022 14:01:32 -0500 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 1p456B-00011R-4T for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 14:01:24 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4568-0002b7-VN for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 14:01:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2052E411F6; Sat, 10 Dec 2022 20:01:15 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5AjarbPKqQKd; Sat, 10 Dec 2022 20:01:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670698873; bh=OWmsSms7hhzFz+QY9zAMY060EUgC5MXWOwNvlHXhg7M=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=EpDn3cwIHoNMrUvPoag7R0cBl1b4zMghNXlwp3eFEGZ+zTQE0DBqjnd02UifArOHo kW1vBC/Qem0+aoH9dqVCZL1w5BzqqqZmwWpSqeSbq4QX7Mx8NBJg+JvyuyL9ItHkef kEVxLc2XeJuz+xvDq7sGFvlzemlJ1AHI8xHgwjb5089jUTkKJxFG9SC5uFB9cJbOZH 68BFxF5VjUU34AF1/6NGAuhNvK/Npnv9uvSkVV/xbDIndoESOB6Jtt6/5YXv+PB7o9 BwiWpq/pl2ZPUCbNTAA183m+oAcbJKOicBfXobeT6FEp/mR3esfjb5Wh+ljk/fRJMV 6uOWEoJm3sIdg== In-Reply-To: <87k02zkrzw.fsf@web.de> (Michael Heerdegen's message of "Sat, 10 Dec 2022 19:56:03 +0100") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141596 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Heerdegen writes: > Emanuel Berg writes: > >> So what is this eval'd to - an why? > > The answer to the question in the subject is easier: No! > > >> Hint: All and any method is allowed! >> >> ;;; -*- lexical-binding: t -*- >> >> (require 'cl-lib) >> >> (cl-loop >> for i from 0 to 1 >> collect (lambda () i) into funs >> finally return (apply #'+ (mapcar #'funcall funs)) ) Somehow, the code doesn't make any sense to me. What it's supposed to achieve? > > Any method? I would like to test it with Emacs 31. Would it make a Where did you get "Emacs 31"? ;) > difference? > > Honestly: Do the cl-loop fans think we should change the behavior? > > > Michael. > > =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOU11kACgkQVTX89U2I YWvfWw//WB8o79pr2UMppo9CZZjk0GqtvkDbmRX+KSMuuAAgIkeM0qzrvUij8xjR A8AMsFa4HqCi5eibXpamGM6we7kgXIY6EqSGmkuFpoLny1VFPaWSLol9a2Oc7AkJ z7A0TlFEfBea3VVpOYPOx4BZHdER7ZoLjusDB5qnwaoPG+yRdwPbTyAGoj+1vJq3 O3OwixQhQhfbfZWLt8SV/9gVBOOQ4rHKrDIiuVnEF5n9bZNFieT/MDugxuS6p1ih Al7UyacvfRs3WEhiY7+juNmRNA4ESX1ZYCoWCngqTcK6KLMjdmfkuE5MXuuVs45M 4UvD0g4GbfjLkovRIoXIk9ycETR3US3anU5GvzhrCbLGqkYqZoKxBt4rWCRK0Enq Z9KVeGBil1A8+6u2t/lcFXd603M22wxksekIg2zELzzl6T+/jmzgd8yxEwmDhQnJ I09W9llz/EtQNilq2lVmrwFGyS0DGhNLMHZKO2JdUrCIUgh/J7+se8svro57sv/T fHhko5syFrSTPSNw/G7G6/iowOcBLZYhQdOWKDTKeXvKMQedmHrn1yNNJcariApk ZVrFVS3Qc2hewAbcEMw/uEHlOvOyFHEummEVjNSk3mn+Tr2onijU9bk/9M15rKjG FGiNPn1trGtpFS47M55Kcc88FKe/ILgVUI1bA6XDL69WuCyrQdg= =1kSn -----END PGP SIGNATURE----- --=-=-=--