Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Option to @With to drop the 'with' prefix #2415

Open
stickfigure opened this issue Apr 5, 2020 · 1 comment
Open

[FEATURE] Option to @With to drop the 'with' prefix #2415

stickfigure opened this issue Apr 5, 2020 · 1 comment

Comments

@stickfigure
Copy link

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)?

@Zekromaster
Copy link

Seconding this. Software written with immutability in mind doesn't need to specially mark "withers".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants