Hacker News new | ask | show | jobs
by rogerkeays 1083 days ago
How do you do the same thing to java.lang.String?
1 comments

A class MyStringBuilder with domain-specific fluent interface can do the job perfectly.
and a MyStringBuilderInterfaceProxyFactory too of course
Hate towards design patterns is a typical sign of not understanding them. Having a builder class to construct a certain subset of generic objects is a normal design practice, so your irony does not look appropriate and does not contribute to the discussion.
OK, sorry.