Conclusions

Our focus in this chapter was on getting Scala code running in a worksheet, and starting to build a basic model of program evaluation.

We introduced expressions, types, and values:

We also also discussed evaluation, which connects expressions and values, and compilation, which is a process that happens before evaluation and performs type checking.

Finally, we introduced the concepts of compile-time, which means the time when a program is compiled, and run-time, which refers to the time when a program is evaluated.