Racket Terminal: Command for exiting a current program?
Asked Answered
K

1

6

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.

Karisa answered 2/7, 2017 at 21:21 Comment(0)
S
4

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

(enter! #f)
Supersensual answered 3/7, 2017 at 12:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.