Scala, Programming, Functional Programming, Type Safety.
for everyone who appreciates pair programming with the compiler, no matter if they prefer a functional or object oriented approach. I’m going to define refined types for the recipient and body. Both are strings, so let’s start with just naming them: So far we have poor type safety. Let’s add some