fix: racket REPL no longer errors when trying to print something not a number.
This commit is contained in:
parent
b9a07f3329
commit
d8cadc62dc
1 changed files with 1 additions and 1 deletions
|
@ -2,5 +2,5 @@
|
|||
(cond
|
||||
[(void? x) #f]
|
||||
;; Also show fractions as decimals.
|
||||
[(and (exact? x) (not (exact-integer? x))) (printf "~a = ~a" x (exact->inexact x))]
|
||||
[(and (number? x) (exact? x) (not (exact-integer? x))) (printf "~a = ~a" x (exact->inexact x))]
|
||||
[else (pretty-print x)])))
|
||||
|
|
Loading…
Reference in a new issue