dotty

woman holding macbook

How Scala met Dotty?

Reading Time: 2 minutes It all began in 2012 when the first commit for Scala 3 was made and it was decided to base Scala 3 on DOT. What is DOT? Before we go further into the story, let’s get to know about DOT. DOT, an abbreviation for Dependent Object Types, is a new type-theoretic calculus which models path-dependent types, abstract type members, and it creates a mixture of Continue Reading

Scala3 Vlog: Enumerations

Reading Time: < 1 minute Hello folks, We have released another video on Scala3 series which talks about Enums, short for Enumerations. Enums in Scala3 are more powerful as compared with Scala2. The reasons are: Scala3 enums are compatible with Java Enums. Pattern matching on Scala3 Enums is exhaustive. With Scala3 Enums, you can also create your ADTs in more lighter way. Watch out the video on Scala3 Enums to get Continue Reading

Scala3 Vlog: Starting with Scala3

Reading Time: < 1 minute Hello folks,As we all know that Scala3 (or Dotty) launch can happen anytime soon. So here we bring you a video on how can you write your first code in Scala3 with your favourite IDE (i.e. Intellij Idea) with minimal setup. Watch out the first video on Scala3.

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

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

Dotty – Intersection Types

Reading Time: 2 minutes Dotty is the new Scala compiler that is written in Scala 2 and it will be future Scala i.e Scala 3.0. The current version of Dotty is 0.24.0-RC1 and very soon the first stable version will be launched in the market. Dotty is completely open source and it is available on GitHub. With this blog, I am going to share you one of New Types Continue Reading

Scala 3.0

Scala 3.0: What’s New?

Reading Time: 3 minutes Scala 3.0, an upgrade to the object-oriented, functional Scala language that started out on the JVM, will be a big step towards realizing the full potential of ideas. The intent is to publish the final Scala 3.0 soon after Scala 2.14. At the current release schedule that means early 2020. Let’s discuss 2.12 and 2.13 with the new Dotty compiler in Scala 3.0. Scala 2.12 Continue Reading