DEV Community

Discussion on: Union Types with Javascript

Collapse
 
caiorcferreira profile image
Caio Ferreira

I'm adding this post on my always favorite list!
I had seen other implementations of algebric data types in Javascript and none was so simple and elegant.

Thank you for the incredible article and high fives for the solution!

Collapse
 
avalander profile image
Avalander

Thanks for your keen words, I appreciate it!

When I learned about algebraic data types I checked out a couple of Javascript libraries, but it seemed a bit overkill to use them, so I came up with this implementation.