6:43:33lokejackdaniel & beach: I have now two separate, but equivalent, ways to implement fetching data from the clipboard. I'd like to hear an opinion as to which one to prefer:
6:43:53loke1) The fetch-from-clipboard function accepts a callback function that will be called when the data is ready
6:44:19loke2) some time after fetch-from-clipboard is called, an event is sent that contains the content
6:44:34lokeI definitely prefer 1, but there may be arguments for 2 that I haven't thought of.
6:45:26jackdaniel2) seems to fit better mcclim's model
6:46:16jackdaniel*also* from which thread will that "callback" function be called?
6:46:42jackdanielbecause if it is not McCLIM's event/command thread you'll get races if you work on sheets
6:47:36lokejackdaniel: from the "main" thread. McCLIM isn't really thread-safe, so it's not really valid to call most functions from other threads.
6:48:15lokejackdaniel: I agree that the event model is more inline with the CLIM model.
6:48:45lokeThe event version also has one particular “benefit” (I put it in quotes because I don't know if it really is a benefit):
6:49:12lokeIf the remote never replies, the event will never be sent. That is a simpler mental model than a closure that is never invoked.
6:50:33lokeAll right, I guess I'll go with model 2.