|
From: | Emanuel Berg |
Subject: | Re: Is there any difference between `equal' and `string=' for strings? |
Date: | Fri, 20 Aug 2021 08:32:22 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jean Louis wrote: >> `cl-equalp' I give up ;) > > equalp is very handy. The docstring says This is like ‘equal’, except that it accepts numerically equal numbers of different types (float vs. integer), and also compares strings case-insensitively. Just so many to keep track of ... Also `eql' which works like `eq' only also "works" for floats ... (eq 1 1 ) ; t (eq 1.0 1.0) ; nil (eql 1 1 ) ; t (eql 1.0 1.0) ; t (eql -0.0 0.0) ; nil (uhm, how does that situation appear?) (* -1 0.0) ; -0.0 (okay ...) (= -0.0 0.0) ; t (the same position on the axis of real numbers) -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |