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 21:17:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis wrote:

>> (defun do-something (method)
>>   (when (string= method "now")
>>    (message "I'm all over it") ))
>>
>> Then one can do either
>> 
>>   (do-something "now")
>> 
>> or
>> 
>>   (do-something 'now)
>
> I would do:
>
> (setq now "Not now") -> "Not now"
> (do-something now) -> nil

:)

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




reply via email to

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