- Functional programming is programming through the definition and composition of objects.
- Object-oriented programming is programming through the definition and compositon of objects.
- In Scala, functions are objects. Programs can be constructed through both the definition and composition of objects or functions. This gives Scala the ability to focus on
nouns
orverbs
in a program, depending on what is the most prominent.
- functional programming and object-oriented programming are two different ways of looking at a problem