[plt-scheme] Suggestion for scheme/future

From: Thomas Chust (chust at web.de)
Date: Thu Feb 4 10:14:27 EST 2010


playing around with the scheme/future library I just thought it would be
a useful addition to have a simple fork/join pattern based on futures
packaged as a convenient macro:

  (define-syntax-rule (parallel-let ([id expr] ...) body ...)
    (let ([id (future (λ () expr))] ...)
      (let ([id (touch id)] ...) body ...)))

What do you think about that?


When C++ is your hammer, every problem looks like your thumb.

Posted on the users mailing list.