[racket-dev] [plt] Push #25914: master branch updated

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Dec 18 08:19:00 EST 2012

On Tue, Dec 18, 2012 at 12:22 AM, Neil Toronto <neil.toronto at gmail.com>wrote:

> On 12/17/2012 05:48 PM, Robby Findler wrote:
>
>> I'm not sure about this change. If I pass in a buggy function, I'm not
>> sure I'd want the errors to get swallowed.
>>
>
> The errors are almost always division by zero or some similar mathematical
> domain error, because plotted functions get sent exact rational numbers.
> Also, it's usually obvious on the plot where there's an error. In 3D and
> contour plots in particular, the holes are gaping.
>
>
You could catch only
exn:fail:contract:divide-by-zero<file:///Users/robby/git/exp/plt/doc/reference/exns.html?q=exn%3A#(def._((lib._racket/private/base..rkt)._exn~3afail~3acontract~3adivide-by-zero))>
by
default if that gets most of them?


>
>  How about making the plot but putting a red thing on it (and maybe
>> showing the error text on mouseover)?
>>
>
> That's not a bad idea. I'll think about how to implement it.
>
> Neil ⊥
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20121218/f82cac3d/attachment.html>

Posted on the dev mailing list.