Comment on (How to Write a (Lisp) Interpreter (in Python))parentComments−tung15yHe implements call/cc with Python's exceptions. Pretty clever.−gjm1115yIt does mean you don't get the full power of call/cc: you can't invoke a continuation again after it's completed. There are some cool things that stops you doing -- e.g., using call/cc to implement a backtracking searcher.
Comments
He implements call/cc with Python's exceptions. Pretty clever.
It does mean you don't get the full power of call/cc: you can't invoke a continuation again after it's completed. There are some cool things that stops you doing -- e.g., using call/cc to implement a backtracking searcher.