Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Algebraic Data Types for Ruby (github.com/txus)
4 points by jweissman on Nov 10, 2014 | hide | past | favorite | 1 comment


I'm not a ruby guy but the implementation is quite interesting.

The syntax looks very readable compared to other library-level implementations. There seems to have been some abuse of the "::" constant access operator and a lot of meta-magic + eval but the results are pretty nice.

I find the type-mapping in the Constructor class pretty interesting as well.




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

Search: