In this post we will see how Intersection types help us better model type constraints promoting reuse and how Union types increase code flexibility. We will compare and contrast approaches and how to use in the latest Java and Scala.| Scott Logic
In this article, we introduce you to the concept of algebraic data types and show how you can build your own data types in Haskell.| Algebraic Data Types in Haskell