I do not buy this argument: the user didn't write the compiler but they wrote the contract. <span></span><div><br></div><div>Robby<br><br>On Monday, July 14, 2014, Sam Tobin-Hochstadt <<a href="mailto:samth@cs.indiana.edu">samth@cs.indiana.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This seems like a situation where the new error message is potentially<br>
more confusing, even though it's technically more correct. There are<br>
lots of other caveats we could add ("assuming there isn't a compiler<br>
bug", etc) but I think adding them would make Racket harder to use.<br>
<br>
Sam<br>
<br>
On Mon, Jul 14, 2014 at 9:11 AM, <<a href="javascript:;" onclick="_e(event, 'cvml', 'robby@racket-lang.org')">robby@racket-lang.org</a>> wrote:<br>
> robby has updated `master' from 737330deb6 to 1dda800ca2.<br>
> <a href="http://git.racket-lang.org/plt/737330deb6..1dda800ca2" target="_blank">http://git.racket-lang.org/plt/737330deb6..1dda800ca2</a><br>
><br>
> =====[ One Commit ]=====================================================<br>
> Directory summary:<br>
> 100.0% racket/collects/racket/contract/private/<br>
><br>
> ~~~~~~~~~~<br>
><br>
> 1dda800 Robby Findler <<a href="javascript:;" onclick="_e(event, 'cvml', 'robby@racket-lang.org')">robby@racket-lang.org</a>> 2014-07-14 08:09<br>
> :<br>
> | add contract-correct caveat to contract violation error messages<br>
> :<br>
> M racket/collects/racket/contract/private/blame.rkt | 1 +<br>
><br>
> =====[ Overall Diff ]===================================================<br>
><br>
> racket/collects/racket/contract/private/blame.rkt<br>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> --- OLD/racket/collects/racket/contract/private/blame.rkt<br>
> +++ NEW/racket/collects/racket/contract/private/blame.rkt<br>
> @@ -320,6 +320,7 @@<br>
> from-line<br>
> on-line<br>
> blaming-line<br>
> + " (assuming the contract is correct)"<br>
> at-line))<br>
><br>
> ;; combine-lines : (->* #:rest (listof (or/c string? #f))) string?)<br>
</blockquote></div>