code-reviews 2021-09-08

Remind me in a few hours if I forget, I played around with Loom and tried to figure out the ergonomic interface with it in Clojure. I'll upload on github Is it the intent of the designers for the programmer to use only one Continuation Scope?

yeah that is odd because when the iterator is done you might not have actually reached the end

idk what the best behavior is though

i think this is partially why python uses StopIteration instead of hasNext

Why not?

public boolean hasNext() {
                return !cont.isDone();
            }

(println "A")
(yield 1)
(println "B")

you will print a, have 1 ready to go, continuation won't be finished. What is the value of next() after that?

which is probably wrong 🤔