Since we don't support Scala 2.11 anymore this is an option.
See https://www.scala-lang.org/news/2.12.0/
Scala and Java 8 interop is also improved for functional code, as methods that take functions can easily be called in both directions using lambda syntax. The FunctionN classes in Scala’s standard library are now Single Abstract Method (SAM) types, and all SAM types are treated uniformly – from type checking through code generation. No class file is generated for a lambda; invokedynamic is used instead.
"No class file is generated" sounds pretty good to me 🤓
Since we don't support Scala 2.11 anymore this is an option.
See https://www.scala-lang.org/news/2.12.0/
"No class file is generated" sounds pretty good to me 🤓