From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: cl-lib warnings Date: Sat, 24 Dec 2022 15:01:13 +0200 Message-ID: <09e5e0ab-7772-522e-8017-32667805f39c@yandex.ru> References: <86o7s3lsnx.fsf@mail.linkov.net> <86bknx8783.fsf@mail.linkov.net> <837cylapt4.fsf@gnu.org> <83wn6kamwr.fsf@gnu.org> <83len0aldq.fsf@gnu.org> <83k02kadbv.fsf@gnu.org> <83a63fap35.fsf@gnu.org> <83bknu8tmo.fsf@gnu.org> <18E95AC5-1FFC-4025-B804-7D70DDB1BD75@gmail.com> <835ye171a1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: lekktu@gmail.com, joaotavora@gmail.com, juri@linkov.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii , Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 24 14:02:14 2022 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 1p94AH-0007RD-St for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Dec 2022 14:02:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p949g-0007mn-Hh; Sat, 24 Dec 2022 08:01:36 -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 1p949S-0007kL-6Q for emacs-devel@gnu.org; Sat, 24 Dec 2022 08:01:28 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p949Q-0002Cw-FA; Sat, 24 Dec 2022 08:01:21 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id ay40so5197559wmb.2; Sat, 24 Dec 2022 05:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=x0K50A5OWO3AvQOGDZi8c/KLK4auEhvwYD+/ZNOu0/E=; b=FOvh+82QCBmeAUQfRWS5lWNeLtle9om0v+qcV5B2TbuKoO2gdfL/hRvAoTqpB/CSFV 5HFkNV94lEbgYTlz/JLZZ4BBpKvra4AnpX/eQMXUbR0RU4YMv+eJ1a9po5OBK5TiI52p unkV83ctBpP6UdYhQbW/TCDFfI1NuMThOhPhXKzJPFk/P0N8wxDbHengSatFBJ5EBqVa snIQepj2cLtNZzXPT0L8w2yKMV1ELXsPBYX5+QWmZgVdFyEZADo6ywg0QCM3048ltlYM qaFtAgtZ6UPO8uJVtOYna9GCTx9nUfU3uqIxoyjIhHLIwhCXuVtmzqmZeChssDrMG8ff OJQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x0K50A5OWO3AvQOGDZi8c/KLK4auEhvwYD+/ZNOu0/E=; b=hoqR81orUm273i5wqGVH+2gXM5T7dyykzqiBZviL5WsnQ8N92ZCGHy/v8GJX9tVdYi dnFzJV7zSOXdbQhy5jggG80wz4wnY3JkBmlUmcbJsc3Ty+YAsa5qIx6sWXYx4bjNBLb1 eVFI1sNycD5FnHykpLNlzd8EA5jDq3VvSdXx5zSJzqq6E0tR++1TI1YLmt685n+VcAIj tGaAL89gQQ3GskXykcu0Iyd7bRk1zyP26RsAg/UtQvTjcWqIuKIaIcc8F8nIb82/d8mS zRl/6DC9ObTDTx2kJojoLB2Z4orUb7BCo8DWHH0Lue+i75QZkMKKcq4IkDvKZCy1jLVs eKOQ== X-Gm-Message-State: AFqh2koiyq1VD6u/EKS/u5BabIi5f3YOr4VX7Ee8UQwSXNlIyN+jyY3b q8FshxTZYPwCy+G/Fcay/OGbuCuy9Fo= X-Google-Smtp-Source: AMrXdXsptg3yC0cuzoF5KbESZ7rfjdyXvLYPsfepFMhr6eAr3fNyYWEJ54eJjLAOE2uOGTzYiI7hzw== X-Received: by 2002:a05:600c:2183:b0:3d2:17db:d6e7 with SMTP id e3-20020a05600c218300b003d217dbd6e7mr12204595wme.20.1671886877102; Sat, 24 Dec 2022 05:01:17 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b22-20020a05600c4e1600b003c6d21a19a0sm7793034wmq.29.2022.12.24.05.01.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Dec 2022 05:01:16 -0800 (PST) Content-Language: en-US In-Reply-To: <835ye171a1.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=raaahh@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.113, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.147, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:301837 Archived-At: On 24/12/2022 08:40, Eli Zaretskii wrote: >> From: Yuan Fu >> Date: Fri, 23 Dec 2022 15:42:52 -0800 >> Cc: Juanma Barranquero, >> João Távora, >> juri@linkov.net, >> monnier@iro.umontreal.ca, >> emacs-devel@gnu.org >> >>> Yes, cl-loop is one of the worst offenders in my eyes. If I want to >>> use Fortran or C, I will use Fortran or C; I don't want to see Fortran >>> for-loops in Emacs Lisp. >> Darn it! I loved cl-loop 😄 I’ll curb my use of cl-loop in Emacs codebase. > Thank you. IMHO, it should be used only when using the normal ELisp > constructs makes the code too complex to understand. In at least some cases, it's the most readable among the fastest ways to implement some feature (i.e. when you need to map+filter, it avoids intermediate allocations).