Hi,

Am 25.06.2010 um 20:48 schrieb Daniel Werner:

> On 25 June 2010 05:27, Ryan Senior <[email protected]> wrote:
>> (future-await fut2 2 :minutes) ; => "done"
> 
> What do others think?

I agree – in particular for point 2.

For point 1: I think "2 :minutes" is not very clojure-like. It sound more like 
Ruby: 2.minutes. A more clojure-like approach would be to an use optional 
keyword argument.

(defn future-await
  [fut & {:keys [timeout]}]
  ....)

(future-await zukunft)
(future-await zukunft :timeout time-out-in-ms)

Or of course the simple two-arg-version.

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to