Type-aware generics in Scala

It is possible to create a generic class, that would have parts of it aware of the actual class of its type argument. Without reflection and linked in compile time. Here is how.

Read more…

Scala love

Am I using Scala's string interpolation too much?

s"${ph.firstName} ${ph.lastName}${ph.credentials.map(", " + _).getOrElse("")}"
Read more…