|
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
[Prev in Thread] | Current Thread | [Next in Thread] |