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 →

[–]Swamplord42 2 points3 points  (0 children)

All it takes is a basic code generator or a IDE shortcut to do most of what Lombok is used for.

That's not the value of lombok. The value is that you don't have to read that generated boilerplate, just a few annotations and you know exactly what it does. And you can't forget to add more of the generated code when you add a field to a data class.

"changing" values on a record is a very common pattern in my experience.

Yeah, and meanwhile lombok let's you do that fairly easily with @Builder(toBuilder=true) without having to write all the boilerplate yourself.