[r6rs-discuss] Better diagnostic messages for unmatched parentheses?

From: Michael Sperber <sperber>
Date: Thu, 14 Jun 2007 09:59:11 +0200

Shiro Kawai <shiro at lava.net> writes:

> I made Gauche's reader report the position of opening
> parenthesis which misses the closing one, and it works
> well for most cases to identify the toplevel definition
> that actually have missing closing paren. However, with
> R6RS library syntax this strategy becomes useless, for the
> reader will report the beginning of the 'library' form.
>
> (Forcing users to use Emacs isn't a solution).

If you really want to help users, I'd suppose DrScheme's method of
looking at the indentation is probably best. However, can't you simply
give `library' special treatment in your reader?

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Thu Jun 14 2007 - 03:59:11 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC