[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Actions using symbols
From: |
Heime |
Subject: |
Actions using symbols |
Date: |
Mon, 02 Sep 2024 12:30:34 +0000 |
I customarily make symbols that I can check on as conditionals
(defun myfunc (actn)
(when (eq actn 'something) dothis)
Would things go wrong should I start using function names as arguments
For instance, myfunc would use a mapcar implementation when ACTN is
'mapcar and an apply-partially implementation when ACTN is 'apply-partially
(defun myfunc (actn)
(when (eq actn 'mapcar) dothis)
(when (eq actn 'apply-partially) dothat)
- Actions using symbols,
Heime <=