I am writing a small interpreter for a C-like language in Scheme (R5RS) and am trying to convert something like:
for (i = 0; i < 100; i++) { if (isprime(i)) continue; else }
into a valid circuit (the isprime function is just an example and does not matter).
However, after some time, I could not find an efficient / easy way to add the equivalent of the continue statement to the do loop in Scheme. What would be even better for the for macro, which allows you to use continue and split.
I am considering switching to Common Lisp. Will it be easier in CL?
source share