From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Wed, 1 Nov 2023 19:42:04 -0700 Message-ID: <7f01037d-16ab-adc0-08ff-9bdcaa57d4b5@gmail.com> References: <46ab3c7d-d820-4bb4-8ec4-97c614d7c8a0@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27025"; mail-complaints-to="usenet@ciao.gmane.io" Cc: adam@alphapapa.net, emacs-devel@gnu.org, stefankangas@gmail.com To: rms@gnu.org, =?UTF-8?B?Sm/Dg8KjbyBUw4PCoXZvcmE=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 02 03:43:07 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 1qyNfn-0006u5-Ke for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Nov 2023 03:43:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyNew-0002n3-VX; Wed, 01 Nov 2023 22:42:15 -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 1qyNet-0002mO-Jm for emacs-devel@gnu.org; Wed, 01 Nov 2023 22:42:12 -0400 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyNer-0006zd-NH; Wed, 01 Nov 2023 22:42:11 -0400 Original-Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2809b4d648bso484148a91.2; Wed, 01 Nov 2023 19:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698892927; x=1699497727; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=HhX/6nLF6GPedg4CHs5hlzvBw5nfg9M0CP7mxlMsA8M=; b=UQp7U/K/UAg+bsRlFWoSh36rHFwu4WGm8GHQtMeagIq17tZKFqFoiuLEChcLYliS+F ooMYvo8LlWKgDzWNGyeuW5MppujGTzo54jTG/ZI9g5pC973tBvg1r0ZxaHq1V8AcV3c1 tO3CX/g2SsZmSWss823PV63JonrAM+DPnhZCcFgtRgkhcSPIgVybLPViNjIaamjZedWu cgYqnoTP7XaE4kNh1e19b38fBAllXHjM54qscDRq+mxz3qMarGYAh6h7q/9B2W5xu0Xs fHwSkH3DPGlclZH5jCVcnulP6ISJ1KGG4p2eSIbk8/7QPLJAMxR/wUoT8oC4Zx4HpG82 s7nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698892927; x=1699497727; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HhX/6nLF6GPedg4CHs5hlzvBw5nfg9M0CP7mxlMsA8M=; b=rs+cai27cJh2Mn7hJ9BCZex6HKqZfs5fNv5IfSPP6/nloBJyrPT93ftkkjjxv1I66Z 2YEH4ISp9zb/17B6LUl6Dggpxrb3RHsZV48yqp2q320T1XDeuMuYUvLJFQIlfjWEx+RO eK4atomKFoe3wlJY5LRulU5is2w1/q5Jp9YSz2BlnsffxY79ajeqAjuGele+NlrOtEGA +x/pPYJ3CrZ2nb7z65bspJu6nzmRvx/MnUAxM1/Hf5YW6uhPUHdWaX561YMDzXgdOgIP qh/gelK37i3lYYyr7+NLBnFybNKE1S/hrx0MDpv792IhouRF06p0hwRX+qr1cOvA83xQ 2eUA== X-Gm-Message-State: AOJu0Yxppfzk9230jjSO/niAeGNckpsUFcqNi6A/rQaBUY9BxexKcFmq RovOhWnhPe7ax7zJ9bbUTeOzK1Toptg= X-Google-Smtp-Source: AGHT+IFiyJ/sbJA3IoLyZSWG81HxFM1QfhNAB3bw4gXpaH7RsGxNWzc4Af0og/iKd+jwE3qzAS39Kg== X-Received: by 2002:a17:90a:a415:b0:280:4c83:5f31 with SMTP id y21-20020a17090aa41500b002804c835f31mr8102095pjp.48.1698892927127; Wed, 01 Nov 2023 19:42:07 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id gg6-20020a17090b0a0600b0027cf8869ee7sm2821935pjb.0.2023.11.01.19.42.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Nov 2023 19:42:06 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x102f.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:312104 Archived-At: On 11/1/2023 7:28 PM, Richard Stallman wrote: > It might be ok to add some keyword arguments to `sort', which are more > unusual and complex to use, but not to simple constructs like > `pushnew'. This is Emacs Lisp, not Common Lisp. I'm not advocating for (or against) this, but if we wanted something like 'pushnew' and didn't want to use keyword arguments, then what about these two functions? (defun pushnew (value place &optional testfun) ...) (defun pushnew-key (value place keyfun) ...) There's no reason I can see that we'd *need* to have both forms in a single function. (Unless we specifically wanted to match the Common Lisp API, and that's what cl-lib is for.)