Skip to content

Algebraic Data Types for Ruby

github.com/txus
4 pointsjweissman1 comment
On HN

Comments

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.

AboutSource Built by g1lg1l

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