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

You can do it pretty much verbatim, with dynamic dispatch using enums and lots of pattern matching.

It gets a bit trickier when you are nesting environments for closures and the like, but certainly nothing insurmountable without a few things from the standard library.



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

Search: