nim-works / cps

Continuation-Passing Style for Nim 🔗

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPS 0.1.0 checklist

alaviss opened this issue · comments

Just things that are on top of my head that we should get done before 0.1.0, feel free to edit.

  • Have control-flow functions as expected
    • Exception unwinding across continuations
  • Parentage across continuation bases (should be possible as a side effect of fixing #188)
  • Document how to debug CPS and/or submit a bug report
  • Good traces
  • (Maybe) Document currently unsupported CPS rewrites by emitting more error nodes
    • Generics (this one should be done early since people will try this out)
    • var/openArray/lent parameters
    • Lambda/closures within proc
    • Nested procs
    • CPS proc types

Added a couple. 👍

For me, #1 is a working return value shim for procs from imports.

Well, CPS moves fast in the weekends. this works already.

This was broken up into separate issues and 0.1.0 is long gone.