|
From: | Stefan Monnier |
Subject: | Re: [PATCH updated] Support for filesystem watching (inotify) |
Date: | Tue, 07 Jun 2011 15:06:51 -0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
SM> That doesn't sound right to me. At least I'm having trouble figuring SM> out how to bend my mind such that this file-watcher matches (even SM> coarsely) the concept of a "future". [...] > So `file-watch' would return > (make-url-future :value (lambda () (unwatch file here)) > :errorback (lambda (&rest d) (handle unwatch errors)) > :callback (lambda (f) (arbitrary callback))) I'm not saying you can't twist the code so that it works, but it makes no sense at the conceptual level. The file-watcher callback may be called several times; unwatching a file has nothing to do with "get the resulting value"; ... It's just a completely wrong analogy. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |