News for hackers. Stuff that matters.
Re:Java Verbal Expressions by szatkus on Wednesday November 25, 2020 @03:44PM (#25214105)
Both are equally readable to me, but with the builder pattern you have an ability to fork a builder. Cloning objects in Java could be messy.
Re:Java Verbal Expressions by stickfigure on Thursday November 26, 2020 @12:59AM (#25217292)
With immutable objects, every step in the fluent chain of calls is an independent fork of the full object state. There's no need to use java clone(); each method calls a private constructor that passes the object state (slightly altered, of course).

java.lang.String works exactly this way. You're already used to the pattern.