Fork me on GitHub
Ben Sless13:09:40

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

Ben Sless17:09:21

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?

Ben Sless19:09:04

which is probably wrong :thinking_face: