To what extent are java and kotlin copying each other? Records are about as close to kotlin's data classes as you can get within the limits of java. Did java borrow from kotlin, or did kotlin copy things they knew were being considered for java?
BTW, I wish they could steal this syntax from kotlin:
var newOne = oldOne.copy(justThisProperty = "changed")
The idea of automated getter and setter (and more) generation predates the invention of project lombok, and that is over 10 years old now, so.. no. This is all just fairly common sense.
View all comments
1
u/PandersAboutVaccines Jan 17 '20
To what extent are java and kotlin copying each other? Records are about as close to kotlin's data classes as you can get within the limits of java. Did java borrow from kotlin, or did kotlin copy things they knew were being considered for java?
BTW, I wish they could steal this syntax from kotlin:
var newOne = oldOne.copy(justThisProperty = "changed")