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
Our shop very much embraces functional/immutable programming. Our immutable fluent interfaces don't have a with prefix; everything is expected to be immutable by default.
final Thing newThing = oldThing.foo(foovalue).bar(barvalue);
The with adds noise. In fact, mutable things are expected to have set prefixes because the noise stands out.
I notice that @Builder defaults to prefix-less fluent chains. We'd like to have some equivalent way of making @Value @With behave similarly. Maybe @With(prefix="") or @With(prefix=false)?
The text was updated successfully, but these errors were encountered:
Our shop very much embraces functional/immutable programming. Our immutable fluent interfaces don't have a
with
prefix; everything is expected to be immutable by default.final Thing newThing = oldThing.foo(foovalue).bar(barvalue);
The
with
adds noise. In fact, mutable things are expected to haveset
prefixes because the noise stands out.I notice that
@Builder
defaults to prefix-less fluent chains. We'd like to have some equivalent way of making@Value @With
behave similarly. Maybe@With(prefix="")
or@With(prefix=false)
?The text was updated successfully, but these errors were encountered: