Jim foo.bar writes:

> I was just wondering...we have a 'defsomething' macro for almost 
> everything...

For everything? 

> How come there is no 'defpromise'? It is very easy to write one and 
> since we always initialize promises like this: (def x (promise)), I 
> don't see any reason why not...
>
> (defmacro defpromise [name]
>    `(def ~name (promise)))
>
> Jim

How often do you need a top-level promise? Where are the advantages over
the def-only example?


-- 
Moritz Ulrich

Attachment: pgpFttgbpDvnz.pgp
Description: PGP signature

Reply via email to