Scala Foundation Course - Control Structures

Hello and welcome back to Scala tutorial at Learning Journal. The Control abstraction is one of the key offerings of any programming language. When I talk about control abstraction, I mean the if-else, loops and case statement.
Scala offers a limited set of control abstractions because it is flexible enough to allow you to create new control structures. I will show you an example, and we will implement our own control structure. You might find it quite interesting and a powerful capability.
So even if you know the basics of control structures in Scala or any other programming language, it is worth spending some time to learn Scala capabilities. Scala offers five different types of control abstractions.

  1. if else
  2. Match Case
  3. While Loop and Do While Loop
  4. Higher Order Control Abstraction
  5. For Expression

In the next set of videos, I will cover all of these topics.

You will also like:

Kafka Core Concepts

Learn Apache Kafka core concepts and build a solid foundation on Apache Kafka.

Learning Journal

Hadoop Security

Hadoop security implementation using Kerberos.

Learning Journal

Functional Programming

What is Functional Programming and why it is important?

Learning Journal

Lazy Evaluations

Evaluate the expression now vs evaluate it for the first use. Strict vs Lazy?

Learning Journal

Scala Variable length arguments

How do you create a variable length argument in Scala? Why would you need it?

Learning Journal