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.
- if else
- Match Case
- While Loop and Do While Loop
- Higher Order Control Abstraction
- For Expression
In the next set of videos, I will cover all of these topics.