Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  File "<stdin>", line 1, in easter_egg
  RuntimeError: maximum recursion depth exceeded


That's why you need to do a CPS transform to transform every call into a tail call, and wrap the continuation up on the heap, so you don't blow out the stack.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: