[racket] Plot is voracious

From: Laurent (laurent.orseau at gmail.com)
Date: Wed May 21 11:37:58 EDT 2014

... it eats everything! (particularly exceptions)
For example, it is perfectly happy with the following:

% racket
Welcome to Racket v6.0.1.7.
> (require plot)
> (plot (function (lambda(x)(+ x n)))
  #:x-min 0 #:x-max 10 #:y-min 0 #:y-max 10)
(object:2d-plot-snip% ...)

... although n is clearly undefined. Presumably this is to avoid breaking
on math errors like `(/ 0)` ?

Would it make sense to have an `exn:fail:arithmetic` exception struct so
that `function` would only catch those?

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140521/020dd026/attachment-0001.html>

Posted on the users mailing list.