Tommy Dejbjerg Pedersen
Tradeshift Engineering
1 min readSep 11, 2020

--

Photo by Krista Mangulsone on Unsplash

Cats and dogs get along fine, right?

That may happen sometimes in real life, but mixing cats and dog as objects in a programming language is a completely different matter.
The cat can’t bark and the purr function is non-existing in a dogs world.

So how do you mix the two?

Our good colleague, Jim Redfern, gave his view on that in an article published at Better Programming, a publication dedicated to valuable advice to developers.
Better Programming is a goldmine of articles on many different programming aspects.

Follow the link below to learn more about discriminating unions in Typescript — and see for yourself how cats and dogs can get along in a modern programming language

Photo by Yan Laurichesse on Unsplash

--

--