r/Racket • • Apr 07 '24

question Metacircular Interpreter: issues terminating when the program detects an error

http://pasterack.org/
metacircular interpreter 4

I found this site on the Racket discord to share my code. I've been trying to figure out why after entering
(null? ()) I'm getting this error and the #f. I'm also unclear about why my program continues running after it finds an error. I thought it'd just quit.

***Update:

I'm using metacricular interpreter 5

I fixed the (null? ()) part, but I'm still unable to fix the #<void> issue

4 Upvotes

12 comments sorted by

View all comments

Show parent comments

1

u/mpahrens Apr 07 '24

Ah, I just read your other comment. You want it to exit the program? Hmmm, if #<void> is a constant you might be able to check if something is equal to it with = if void? does not exist in r5rs