Re: Another needed piece of syntax: when/latch/catch Marc Stiegler (marcs@skyhunter.com)
Fri, 22 Oct 1999 12:53:51 -0700

This, by the way, is a common error made very frequently by me--putting an extra close paren after the function argument list in the whenResolved. And if you've been doing java for the last couple of days when you make this error, it is remarkably difficult to spot. Another merit of the alternative syntax.

--marcs



From: Mark S. Miller <markm@caplet.com>
To: Bill Frantz <frantz@communities.com> Cc: E Language Discussions <e-lang@eros-os.org> Sent: Friday, October 22, 1999 11:23 AM
Subject: Re: Another needed piece of syntax: when/latch/catch

> At 11:16 AM 10/22/99 , Bill Frantz wrote:
> >At 11:07 AM 10/22/1999 -0700, Mark S. Miller wrote:
> > > (foo <- msg(args)) <- whenResolved(define observer(result) {
> >
> >Don't you mean:
> >
> > (foo <- msg(args)) <- whenResolved(define observer(result)) {
>
> No. Following the open curly is the body of the observer. The matching
close paren follows the last close curly.
>
>
> Cheers,
> --MarkM
>