DEV Community

Discussion on: Basic Types are a Red Flag, Part 1

oliverradini profile image

Just started using Eithers in my typescript code, and they 've been great. This post opens my eyes to what you can really do with this pattern within typescript, though, I'm always amazed at how versatile and useful the type system is.

thewix profile image
TheWix Author

Thanks for the comment! Glad I could help. I am working on a few other posts at the moment that hopefully you will enjoy.

As for the TS type system, I can from traditional C-Style languages like C/C++/C# and Java, and I much prefer a system based on algebraic data types like Typescript. Also, if you haven't used the metaprogramming also available then I definitely would!