DEV Community

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

Collapse
 
oliverradini profile image
OliverRadini

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.

Collapse
 
thewix profile image
TheWix

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!