[e-lang] Missing makeIOUMint.emaker in DonutLab?

Mark Miller erights at gmail.com
Mon May 14 16:51:02 EDT 2007


On 5/14/07, Kevin Reid <kpreid at mac.com> wrote:
> On May 14, 2007, at 16:02, Mark Miller wrote:
>
> >     ? def issuer := <donut:makeIOUIssuerAuthor>(timer)("Sugar")
> >     # value: <issues Sugar>
> >
> > It became an author because it now bundles in some record keeping, and
> > so needs an alleged timer which responds to a "now()" message with an
> > integer.
>
> If that's all it will ever possibly need, why not pass just timer.now?
>
>    ? def issuer := <donut:makeIOUIssuerAuthor>(timer.now)("Sugar")


That would have been a better design. I didn't think of it because I'm
still not used to the verb-curry syntax.

-- 
Text by me above is hereby placed in the public domain

    Cheers,
    --MarkM


More information about the e-lang mailing list