From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69739: 30.0.50; `type-of` is not precise enough Date: Tue, 12 Mar 2024 17:02:53 +0200 Message-ID: <86il1rtrvm.fsf@gnu.org> References: <86o7bjtuvj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24453"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69739@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 12 16:03:53 2024 Return-path: Envelope-to: geb-bug-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 1rk3fV-000680-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Mar 2024 16:03:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk3fB-00054R-MF; Tue, 12 Mar 2024 11:03:33 -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 1rk3f6-00051u-1r for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 11:03:28 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rk3f5-0003rs-PZ for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 11:03:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rk3fe-0003Lh-6V for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 11:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Mar 2024 15:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69739 X-GNU-PR-Package: emacs Original-Received: via spool by 69739-submit@debbugs.gnu.org id=B69739.171025584012866 (code B ref 69739); Tue, 12 Mar 2024 15:04:02 +0000 Original-Received: (at 69739) by debbugs.gnu.org; 12 Mar 2024 15:04:00 +0000 Original-Received: from localhost ([127.0.0.1]:43376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk3fc-0003LR-2l for submit@debbugs.gnu.org; Tue, 12 Mar 2024 11:04:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk3fa-0003LH-I6 for 69739@debbugs.gnu.org; Tue, 12 Mar 2024 11:03:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk3el-0003oS-GX; Tue, 12 Mar 2024 11:03:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=376+GLNNw/TWCYX1eFgcC6EtuGZVpHGfmpBCWuaJro0=; b=WepXDPH4k3Sz 7mg5NxJB5qHQgaHhIX5Fnmt6O9IglN6pcfE787q2cgxUO8tf0nOkceszv2oOCxxJQeopvILFtYShn i0KiezOGtBiyM+OwyecVLh8KRD3bWbVMiumqpAARw8JYWhWqeFJ1XAcGxN/YkJYCdxbzymIVvKQsw muYa9IDVA7z99/YwgTx2AOFE5qEfoU7h8rjt1czC4lrUzRd2TYPrp9eBaWgnQFJnhWAxJ5Kwgfh9r Sx3Uemo3Fhp5ikHS/53mveLFXHFwVaAfwg75iMs+yXSD34wEy+sM/NV4rK2dylg9cnuZNmI8elcZe Jig25AEX+31j+pNlb/DEAA==; In-Reply-To: (message from Stefan Monnier on Tue, 12 Mar 2024 10:43:24 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281524 Archived-At: > From: Stefan Monnier > Cc: 69739@debbugs.gnu.org > Date: Tue, 12 Mar 2024 10:43:24 -0400 > > >> Still, any change as suggested here would be an incompatible change, so > >> there's risk it'll break some code out there (`type-of` is not used very > >> often, but it *is* used). Another option is to introduce a new function > >> which does the same as `type-of` but with changes like the ones above. > >> (we could even decide to give it a `cl-generic-` prefix to discourage > >> its use elsewhere so we can be more free to change its return value in > >> the future). > > I'd prefer a non-breaking change, if possible and reasonable. > > Suggestion for a good name for that new function? cl-generic-type-of is one. > Should it make `type-of` obsolete? I don't have an opinion on this. Depends on how much type-of is used, I guess. Maybe we should wait for the next major release and decide whether to deprecate then?