Dotty

Do you know about Union Types in Scala 3.0?

Reading Time: 2 minutes You might have learnt union of subsets in mathematics, similarly, we have union types in Scala 3.0 as well. Let’s see, how can we use union types while programming in scala: What is Union? Union of two things under consideration, is the collection of elements which can belong to either of them or both of them . Let’s understand with respect to set theory:Set s1 Continue Reading

Do you know about Intersection Types in Scala 3.0, Dotty?

Reading Time: 2 minutes You might have learnt intersection of subsets in mathematics, similarly, we have intersection types in Scala 3.0 as well. Let’s see, how can we use intersection types while programming in scala: What is Intersection or Conjunction? Intersection of two or more things under consideration, is the collection of common things among them. Let’s understand with respect to set theory:Set s1 = {2, 3, 5}, set Continue Reading

Match Types in Dotty

Reading Time: 2 minutes As we already know that Dotty is the new Scala version and will obviously be more stronger and powerful then Scala 2.In Scala-2, pattern matching is only applicable to the objects and not on the types. But with the new Scala compiler i.e Dotty, it is possible to apply matching on Types also. For example, The Container is a type which gets reduce to further Continue Reading

What a dotty build looks like?

Reading Time: 3 minutes Dotty is one of the most awaited change for scala developers. As we know its different then the Scala 2 in many ways. The major goals of this change are as follows: Making programming language compatible with the dot calculas and use lessons leart from that work. Making scala easier and safer to use. Remove wart and puzzlers. Improve consistency and expresiveness of Scala language Continue Reading

Dotty – Union Data Types

Reading Time: 2 minutes Hello folks, As we know that dotty is new Scala compiler (also know as Scala 3.0) which is coming with some new features and improvements. To get more details about the dotty and its environment setup. Please follow our beginner guide blog. In this blog, I will describe you about newly introduced Union data type of dotty and its various properties. A union is data type, which Continue Reading