bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#69739: 30.0.50; `type-of` is not precise enough


From: Rudolf Schlatte
Subject: bug#69739: 30.0.50; `type-of` is not precise enough
Date: Tue, 12 Mar 2024 17:07:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

>  * Incompatible Changes in Emacs 30.1
>  
> +** 'type-of' sometimes returns more precise types.
> +More specifically, for nil and t it returns 'null' and 'boolean'
> +instead of just 'symbol' and for "subrs", it now returns one of
> +'special-form', 'subr-primitive', or 'subr-native-elisp'.

Is it true that in all cases, if `(type-of x)' used to return `foo'
before the change, `(typep x 'foo)' still returns t after the change?
If so, that might be worth mentioning, since it makes fixing broken code
easier.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]