July 2019
Beginner to intermediate
315 pages
5h 32m
English
As you progress through this book, you will come to appreciate that Scala embodies a number of constructs that you can leverage to your advantage. Such constructs help structure your code better, reduce verbosity, and improve productivity. In this chapter, we explore a feature in Scala that will help you achieve some of the aforementioned benefits.
The feature we will cover in this chapter is called the code block, which basically allows you to write a bunch of statements together in a block and assign the result to a variable. The block is processed as a unit and the expressions ...
Read now
Unlock full access