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)
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.