4 ms·
Be sure to also check "(How to Write a ((Better) Lisp) Interpreter (in Python))": http://norvig.com/lispy2.html http://norvig.com/lispy2.html
by kroger 16y ago
Be sure to also check "(How to Write a ((Better) Lisp) Interpreter (in Python))": http://norvig.com/lispy2.html http://norvig.com/lispy2.html
- tung 16y agoHe implements call/cc with Python's exceptions. Pretty clever.
- gjm11 16y agoIt 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.