From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.devel Subject: Re: adding to emacs coding standard / formatting Date: Mon, 19 Oct 2020 15:59:35 -0400 Message-ID: <20201019195935.5m6owfzy4iuvbz2e@E15-2016.optimum.net> References: <20201019031002.iulr45ztrkwsiqlo@E15-2016.optimum.net> <83tuuqp9pi.fsf@gnu.org> Mime-Version: 1.0 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="2312"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 19 22:04:38 2020 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 1kUbOX-0000U3-Rv for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Oct 2020 22:04:37 +0200 Original-Received: from localhost ([::1]:40384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUbOW-00065T-J0 for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Oct 2020 16:04:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUbJq-0004el-JZ for emacs-devel@gnu.org; Mon, 19 Oct 2020 15:59:46 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:39455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUbJn-0008Pn-D7; Mon, 19 Oct 2020 15:59:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1603137579; bh=pcbYSsU4InLepxlXmvZtS1U22z5JwHZKrMN9gZO9lRo=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=f0n2N4O/8h4VSoL9P/soHMgz2UGA40NHI/R3NHMxYnesIQrGD6HcnVcp/rIU4w0n5 BdaWl0onFi6M9miZFu58zyaNMXzESYIkMINdkfFFPgwNGi+QU0RpsY67zutPvYHyST gZ17qtORfx5b9jD7N9/RGsrD+LkGdekgtsvLSdDE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1Mlw7V-1k4JEv0PgJ-00ixgd; Mon, 19 Oct 2020 21:59:38 +0200 Content-Disposition: inline In-Reply-To: <83tuuqp9pi.fsf@gnu.org> X-Provags-ID: V03:K1:s6f5s+MAmnf/RqpDd3a0rLiWa3ExgsEWmS8a2TiCOylY+9JiYT/ HK2ndUHg8QZD7TKrU0bzh3m2TlMe52A9Blq6txJUJmuumOZe1qIIzm7d1zUgxhtUwKSNn3p Isv9p1Woba/NhLlCIY4gsMqFTERJaa1eblqOkfcKl+Af/42h0o7A7XE8Zu/VckmkVJTqY9b wM+hG1orRtThUzlVE8PHA== X-UI-Out-Filterresults: notjunk:1;V03:K0:VIfQr5pkfu8=:ZojR6K/RKYwrW+ys8nFcP6 +61zfJ8kv9ViZo5o2V0KFPxu2vY2hTJceYi2kh2WpCz7p67cNeKRMg5UICdCLshx0pVlk6Po5 48/Z+rbZ1nP3ZuM9oLEoMIJmKlBBgBFxU6yDdfB5HlLdqYWlvmEOg6pnC5gJFAo0koEF/p6hk Gzwt/JLd7mww7WmkYK2XH8qqJe7PnXfgU3B7BB8YbN0RHfd62CAVn7y8ra1dNV6eCelCo+l22 GFPcPy5Rgzo1G8enX9FfLNYC6BOaeQnkM3vC8oNjr5NQF/c0w7tLnjdINwXYF9NzOTAf8eTJk h16WOfvgN2OJ5o5EIe1EWcoqKp36QcItg4oqeOC1IHq0VE/1F2wzntTdRP+mzeGPSDCboIStD u1LbFbfPLBd4I8yTkd2dglcLXWKLK0jUyQudGfrxAYeOyQEyFutp9O8WY76OHxBRwU1gXWwph yA8ogSUzI1Dg0LzISZflhmdiZsbNBjGC+gmjfKh0eNUYLpk9GoqQmfL08cx/an//l6xiTLKq4 h5bBz3oy+V4X2oP/unAJP1oTPWSFlW4kQ8N0v4kFOBCBmI4Qt68He7YMBRLY1AkCM6QqxWzex R+53YW3lWC60XAveuQabkOUl1c0ZmgwaDp3zS7Fhu6IoMFBQQXQ3ptB7B01N5dwFn9TiLpB0K F77NbQ3dErYxD9ucI6WPRBrQYH7mXmvsqjt9t3Hav7h1FEgD9KHH7VNId6IAlskPafaAiEVE0 Im6Ze92EX9lmUFxb3hK+pHyW6hES8HltUX0Cp3QhhLhiD65QFNlMwhZwW88pfObxaOohJMFF Received-SPF: pass client-ip=212.227.15.18; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/19 15:59:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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" Xref: news.gmane.io gmane.emacs.devel:258147 Archived-At: On 2020-10-19 17:32, Eli Zaretskii wrote: > > Date: Sun, 18 Oct 2020 23:10:02 -0400 > > > > Also, this is an opportunity to address a pet peeve: I occasionally se= e > > code either defining keybindings to lambda functions, or setting lambd= a > > functions as elements of function lists (eg. lists of hook functions). > > I'd like to propose that those uses be banned because of their > > difficulty to modify. > > Where would you allow lambda functions, then? I see them most used as arguments/predicates to mapping functions or as common-lisp predicates (eg. :test). My complaint is against their use in situations that make standard manipulation practices difficult: 1) When you assign a keybinding to a lambda function, you can't remap to it; 2) When you add a lambda function to a list, you lose the ability to perform operations such as memq, delq, and you can't modify the element in place. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0