Skip to content

Comment on (How to Write a (Lisp) Interpreter (in Python))parent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.