On Tue, Dec 18, 2012 at 12:22 AM, Neil Toronto <neil.toro...@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 ⊥
>
>
_________________________
  Racket Developers list:
  http://lists.racket-lang.org/dev

Reply via email to