all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Actions using symbols
@ 2024-09-02 12:30 Heime
  2024-09-02 13:38 ` Manuel Giraud via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 4+ messages in thread
From: Heime @ 2024-09-02 12:30 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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)




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-02 19:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 12:30 Actions using symbols Heime
2024-09-02 13:38 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-09-02 17:10   ` Heime
2024-09-02 19:07     ` alexbuhl

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.