From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.tangents Subject: Re: [External] : Re: Shrinking the C core Date: Thu, 14 Sep 2023 14:09:46 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24816"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "rms@gnu.org" , "emacs-tangents@gnu.org" To: Drew Adams Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Thu Sep 14 14:10:58 2023 Return-path: Envelope-to: get-emacs-tangents@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 1qglBS-0006JX-3V for get-emacs-tangents@m.gmane-mx.org; Thu, 14 Sep 2023 14:10:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qglAT-0006AG-Hf; Thu, 14 Sep 2023 08:09:57 -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 1qglAR-00069U-2z for emacs-tangents@gnu.org; Thu, 14 Sep 2023 08:09:55 -0400 Original-Received: from mail-ve1eur01olkn2082.outbound.protection.outlook.com ([40.92.66.82] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qglAN-0001XY-Q3; Thu, 14 Sep 2023 08:09:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FRFexdXw/oeaVUSCj6q4EqlI/imrmXeUBw31VptVX3ySnMFHG1F6qOXW3dlpdE3+NYvOcVf8+j+kWB3yiNdnDMJAz2i4K2YzO2AB0mtKfVY6M0BfxAts3Su5Ub+R65eve4VPJFGTtG0eCaS6NYcR9YX3+vqP7art4g0xbnhmBO2Knyus1C4ea+3N2br4D5tBSCA+jmzFgyPP4dy16CohWm/3veoBr3e5Md3BN0VUAFrYxzUsbaD9FaPNcbOI0kB7y6/7VqsvQBSpwR6QNkaIGU1VnT6KvnzqEQ+FoGMPw3pExW3RKzglY2rqhsxx4/zxhjMms3SIr9pMBgveYOYGoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jL9jJpN8H0fuJkRDWMjoYrKN3C42fwLKqepLvuLFNnA=; b=m6XWNDIR/NtTR/J0+INvtkcByI03AEfX6WWQGgI4NRhUXDzU0y2LGMN9ufdw0EtEeWEUf7v4uFR2LxqRZZlSjjP0MYRgcNR5eJrxGDAQgF/9BlVTURuLBiwAZC9ejjP3PDY3jaPmG/t2wMNF1H4iFRV3AytntjN2eCKXy6KNHUeFYl+zWSomjUfgfxvsaEzIFDnoHTt5gjHZoiNFF0oy0GlfkfMsVdbtAl6KNKqxODZsFutUp6n08QO5vYv+o+PwhftQ22EDdqnAGW9B4bTXjLUv2qU43cZHEfl2juzZOL16y1VRCoix8ZbdFoKwbpxktn48LRBj0dkxEOOT1uJtXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jL9jJpN8H0fuJkRDWMjoYrKN3C42fwLKqepLvuLFNnA=; b=GQ1nKkPRrn0c285zs7UknI33tihwFCVQIJraQKnrmoADLl7vnladGKSlIunAXvqjM+Rt56cd6/w07vBj6/dGRoKhqBspB4/cqqPL+xEpBaap+HPnDi1AHF2Y86xtYX9vSmgE+e0U87BwMH54CbkOyPSs8tvDXsLo4zUjV+j0mok2nSqllYF3K/yrTRVyhTnzG/ZBEVb+PBrwNxVYzobXOJCq6oLK7WIzzT8QuNoPK1CQlqaBbi1REDzAZrQ8Mh6gwlyh0dPNyE4yXKXh57bO4jXMPjsR0eTmcQ3axae8dtCTrwEHsK2ljAZaHsNxEtxmCv0PWJCy60kfjsrD4HFDPQ== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM7PR09MB3686.eurprd09.prod.outlook.com (2603:10a6:20b:105::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Thu, 14 Sep 2023 12:09:48 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::df56:b1b1:64b1:6122]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::df56:b1b1:64b1:6122%7]) with mapi id 15.20.6792.020; Thu, 14 Sep 2023 12:09:48 +0000 In-Reply-To: (Drew Adams's message of "Wed, 13 Sep 2023 14:46:53 +0000") X-TMN: [zdyNwqIU8o9731GQ6Qo8zCMSEbQxF7th9r4c6sOrD0E=] X-ClientProxiedBy: BE1P281CA0029.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:15::19) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87sf7hx8fp.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|AM7PR09MB3686:EE_ X-MS-Office365-Filtering-Correlation-Id: d46d62b1-3bba-48c6-8a9e-08dbb51b7d91 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N64vpL+vWO/YpOA5NBmzE70314dR947vHkDg7B35wr+RV5mwo++DBckwVnB7GQluGhmZLFoo18//NsNJn3O9fchUfkQQs3rwReSRbTf5lP66rSeLlhj7EtM6R+f8w+dG96H6HWntGnCSpwj404CcKrIyxnF1K5WrzTlWQ96Qy9DkMDxjDDVKla6Ip0fCpTu1DpTRb2UFAqv7gKNQ9XT/LqK2CXKuDRsf7y3r8jNwTeFub6T1OSD/c2gNrMBiIkdsNZXd1XpjiPBJHvKbcerYG6q5u9DHzuLFgC2UlbZTvRhYioO6RS7CciqE7kboZijxraW6NSoi84qKA6NYJi2DMih1gpgFb/WIlXqbgI2LUEEo3iBhBwWnHlqh4Ow3+Np/vUrpmuGlZI3rZPNox8mRtSOSm6UQShebLUF7IDw19U2F4+6yRIAbcxWrRIn76deVC/YhwoscJ2dHV++MooHtZSttbDAvyLlVCUcl9+cxO7BT2Yxjr4ls08CVRSOUDOuxv0aORlHrgoyKZz0pqq8o1KKzgDQoN0xwkr6UIMQW7xVR1XuSCE61ypACE0I8PtYJ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?msBNRj2ncQt4UXsD32KYfRe6tALVnWq6nFkDOBUIarC7oNvN5bSp++U+6HLx?= =?us-ascii?Q?djjH96FrTiD5ogEMv1qqfG+G9zC1AsK37r0W3lZzZeeLxoshg/gy+Xi5Tqk1?= =?us-ascii?Q?fF2IOlSiOcFvstXgpXAInkvqi0iMKU1VuIxHXV8ZP6cgNLaNusI5WyAdeb2z?= =?us-ascii?Q?yxOCunPtToLqU8CQjSDdYCZc8t7ChGs1LZ7GdzPLMELg/8TCj6iENRebQ95x?= =?us-ascii?Q?AJ5MrGsngbyoDbOqBYl38jpKQ5klJ4gwA4kh+6+CIo6pAJDvvCCSpnfQd6jI?= =?us-ascii?Q?f8rObLxe52KlkyrfuRTS81EgHAPe9t4mhOBKoZiyyqKRSgkIeKPW/9ET4ORg?= =?us-ascii?Q?KmkbiSBdZzjk5yc7DglcN58pIKEopQGvo836O44RCFe/q4vqEupD1qlLkjGj?= =?us-ascii?Q?gCJCjVBCsrl60jFMaF6aANET7Z+U3xyJdYa3wnHhIxsB+NlNjLGELygYTcsn?= =?us-ascii?Q?XQzY7yRlD9vKCHWrx5lgmc2peVK7XnLvRDAs7olNACsYDGG1BUrejXT3SpWO?= =?us-ascii?Q?Pw4Io3apkmHbUU26GIez6Lm01Cd3LRyMRdJWFw1xK92ZfCk3Y001osHYp1u2?= =?us-ascii?Q?Gm5+mfZpf9m26N5TJsj+JTPaKbxJDNCY7oFRqACaDnqhRTf+jHOxPqHNzxtW?= =?us-ascii?Q?X5 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d46d62b1-3bba-48c6-8a9e-08dbb51b7d91 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 12:09:48.5186 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR09MB3686 Received-SPF: pass client-ip=40.92.66.82; envelope-from=arthur.miller@live.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Emacs news and miscellaneous discussions outside the scope of other Emacs mailing lists List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Original-Sender: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.tangents:1084 Archived-At: Drew Adams writes: > [Moving reply to e-tangents.] > >> > I would not object to using keyword arguments for functions >> > like that -- complex and cumbersome to use, and not used often. >> >> Well, than we pretty much agree 100% about keyword args. > > +1. > > Except maybe for the "not used often". Depends on the > "often" use. If used often without any keyword args (or > optional args, for that matter), what difference does it > make that the function _has_ keyword/optional args? By > definition and convention, such args are generally not > for the most common (the default) use case. Well yes, of course, it is corect. I think it depends on what "not often used" referred to. I interepretted it as not often used argument, not the function itself. Those more often used but possible to omit are of course usually optional and in front of the optional list, but those that are used in some more specialized circumstance or by very few are perhaps good candidates for keyword arguments? I don't know, that is how I perecieve it. > But the general point, I think, is that keyword (and > optional) args turn one function into a family of several, > and that can be useful. But the "base" function, called without such args, can be just as convenient as if there > were no such args possible. Yes indeed; and I agree with what you wrote in your longer second mail about that. They do lessen the need for more functions which means less API surface to document and potentially lookup and learn. Isn't a good example that window functions that I wanted to make into same once in the context of help/info patch? I don't remember which it were tbh :). Something with selecting window on just current frame or all frames or something like that.