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

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

Re: Is there any difference between `equal' and `string=' for strings?


From: Emanuel Berg
Subject: Re: Is there any difference between `equal' and `string=' for strings?
Date: Sat, 21 Aug 2021 02:08:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> "equal-all" - same type _and_ equal data is t, else nil (for
> this purpose, the predicates, e.g., `stringp' would imply the
> existence of a type)

How is it with Lisp, it is dynamically typed, right, and the
values, not variables, have type?

But what's the real definition of type?

(type-of 1)         ; integer
(type-of 1.0)       ; float
(type-of t)         ; symbol
(type-of 'type-of)  ; not function, symbol, well, OK
(type-of #'type-of) ; still not function, symbol
(type-of [1 2 3])   ; vector
(type-of "string")  ; string
(type-of ?a)        ; not char, integer, yes
(type-of '(1 2 3))  ; not list, cons
(type-of nil)       ; not list, symbol
(type-of '())       ; same
(type-of (list))    ; ..

... ?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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