all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs Lisp style on callbacks?
@ 2010-10-21 14:06 Elena
  0 siblings, 0 replies; only message in thread
From: Elena @ 2010-10-21 14:06 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

this a question about style.

I'm writing an asynchronous function which upon completion will
execute a callback.  Would you suggest using separate callbacks for
successful and unsuccessful completion? or would you suggest using the
same callback which takes a cons with a success flag as its car?  Any
other suggestions?

I know Emacs Lisp lacks closures: the function would take care of all
additional book-keeping.

Thank you.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-21 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 14:06 Emacs Lisp style on callbacks? Elena

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.