help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs Lisp style on callbacks?


From: Elena
Subject: Emacs Lisp style on callbacks?
Date: Wed, 08 Dec 2010 15:32:49 -0000
User-agent: G2/1.0

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.


reply via email to

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