Ð..
Ð..

Reputation: 318

Racket Terminal: Command for exiting a current program?

When running Racket in a command line, you can start running a racket program using

(enter! "yourfile.rkt")

How do we exit the current .rkt program while still keeping Racket open in the command line? Using

(exit)

closes Racket altogether instead of the current .rkt program.

Upvotes: 6

Views: 4259

Answers (1)

dz1984
dz1984

Reputation: 452

Maybe you could try it and the current namespace will restore to the original.

(enter! #f)

Upvotes: 4

Related Questions