You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As there is the @Builder(setterPrefix = "...") option, it would make sense to have the ability of setting it once across the project at the lombok.config.
An example would be using lombok.builder.setterPrefix = set to have a project-wide prefix set for bean-like builder access.
For consistency, the config value should be used as default value by @SuperBuilder as well, just like lombok.builder.className is used by @SuperBuilder already.
Justification:
Improved signal-to-noise ratio
Better readability (arguably)
Helps keeping project convention consistent
BTW this feature request somewhat follows #2849, to have a project wide consistent config for (very) often used lombok features.
The text was updated successfully, but these errors were encountered:
We won't do this. The reason we offered it in the first place is if you're making a builder that needs to fit specific needs, e.g. because it has to implement an interface or you're using it with some backwards library that expects silly defaults.
Specifically, with (the common prefix) is, in our opinion, highly misleading. There's no point in having a lombok.config setting other than 'I want to apply it everywhere regardless of circumstance' and we're not (currently) seeing the point of that. Builder is in its infancy, relatively speaking. 'there are many ways to do it' engenders pointless style quibbles and needlessly increases learning curves.
We like the java community and wouldn't want to make it worse by introducing pointless customization options like that.
As there is the
@Builder(setterPrefix = "...")
option, it would make sense to have the ability of setting it once across the project at thelombok.config
.An example would be using
lombok.builder.setterPrefix = set
to have a project-wide prefixset
for bean-like builder access.For consistency, the config value should be used as default value by
@SuperBuilder
as well, just likelombok.builder.className
is used by@SuperBuilder
already.Justification:
BTW this feature request somewhat follows #2849, to have a project wide consistent config for (very) often used lombok features.
The text was updated successfully, but these errors were encountered: