by hnthroaway1926 · 7y ago · 0 comments
String s = customer.getName().firstName;
service.withName(s);
I'd prefer this be fixed in the JVM, so you can decide to write your code in the way that's most readable, and not be forced to write it a certain way because the tools suck.
And it's even
val n = customer.getName()
val f = n.firstName
service.withname(f)
Gladly with Some/None NPEs happen seldom with Scala but they do from interfacing with Java libs from time to time.