If the pertinent value of `important-object` can be represented in Racket space without performing `long-computation` (such as in `read`-able structures, or with constructors and hard-earned constants), sometimes I run `long-computation` once, copy&paste the result to a variable assignment in the Definitions window, and temporarily comment-out the call to `long-computation.

;; (define important-object (long-computation))
;; important-object
(define important-object
  (make-foo 4 8 15 16 23 42))

Soon after initial REPL coding, this turns into unit tests, where you will probably want to be able to use intermediate or partial representations anyway, for speed of in-line tests and/or for test granularity.

Neil V.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to