<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>My comment concerns the error message. We used to pay special attention to such things.&nbsp;</div><div><br></div><br><div><div>On Feb 5, 2013, at 11:30 PM, Eric Dobson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I don't get why TR should use a custom contract instead of case-&gt; providing better error messages.<div><br></div><div style="">You get the same error message with:</div><div style=""><br></div><div style=""><div>
#lang racket</div><div><br></div><div>(define/contract (f) (case-&gt;) 2)</div><div>(f 2)</div><div style="">;(f)</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 8:10 PM, Matthias Felleisen <span dir="ltr">&lt;<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Feb 5, 2013, at 4:17 PM, Asumu Takikawa wrote:<br>
<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; In 5.3.2, when running untyped.rkt, I get:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; #&lt;case-lambda-procedure&gt;: arity mismatch;<br>
&gt;&gt; &nbsp; &nbsp;the expected number of arguments does not match the given number<br>
&gt;&gt; &nbsp; &nbsp; given: 1<br>
&gt;&gt; &nbsp; &nbsp; arguments...:<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;5<br>
&gt;<br>
&gt; I agree that this error message is bad. It's a result of changing the<br>
&gt; type `Procedure` to use the contract `(case-&gt;)`. Maybe we should use a<br>
&gt; custom contract here instead that produces a better error message.<br>
<br>
<br>
</div>AMEN!<br>
<div class="HOEnZb"><div class="h5">____________________<br>
&nbsp; Racket Users list:<br>
&nbsp; <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br></div>
</blockquote></div><br></body></html>