[racket-dev] Error message proposal

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jun 23 05:43:15 EDT 2012

At Fri, 22 Jun 2012 12:50:54 -0400, Eli Barzilay wrote:
> First encounter with a new(er) error message:
> [... bad indentation ...]

Some error-reporting functions tried to adjust indentation, which was a
bad idea. I've removed that feature and hopefully corrected the
relevant messages.

> * Another sidenote: having the first line end with a ";" makes the
>   semicolons on the next line be a better choice, should this be
>   the common way to do these error messages?  Perhaps the existence of
>   a ";" on the first line should say that the next line is the further
>   explanation thing which would make it optional?  (Specifically
>   making many existing uses of `error' compatible.)

Yes, a ";" on the first line is meant to indicate that the error
message continues on the next line, and the semi-colon shouldn't be
there if one line is enough.

I forgot to mention before: the new error-message convention is
documented, and now it has its own section (9.2.1) in the Reference.

Posted on the dev mailing list.