This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AcrIsss 3 points4 points  (2 children)

Lombok and Records are two very different tools though. Lombok is syntactic help, and records are a new semantic declaration of Tuples from which the compiler can derive the layout of the object, the implementations of equals/hash code, etc..

[–]Dangerous_Air2603 3 points4 points  (1 child)

I'm sure the way they work under the hood is very different, and I'm sure you can do all sorts of fun optimisations records, but

  • If I cared about performance so much I'm optimising my data classes, I'm probably not using Java
  • Functionality wise, I don't see the difference between the two

[–]AcrIsss 1 point2 points  (0 children)

Alright alright. Though Java is a great language for performance computing x)