True. Users are free to create their own facade to make object
construction easier.
-Adrian
On 4/9/2013 6:22 AM, Gary Gregory wrote:
WRT org.apache.commons.csv.CSVFormat.CSVFormat(char, Character, Quote,
Character, Character, boolean, boolean, String, String, String[])
There does not seem to be a good reason why this is not public. The only
argument I've heard is that some people do not like to use long ctors. But
so what? If we make it public, users have the choice to the the whole
fluent builder API or not.
Thoughts?
Gary
On Mon, Apr 8, 2013 at 7:15 PM, Gary Gregory <garydgreg...@gmail.com> wrote:
I would be ok with making the parser and format ctors public. What
else? I agree that we should not force force folks into an API pattern
but here it's not a big API at least.
Gary
On Apr 8, 2013, at 17:02, Emmanuel Bourg <ebo...@apache.org> wrote:
Le 08/04/2013 22:39, Gary Gregory a écrit :
But that's the price for immutability for some of these objects.
Not sure, we already achieved immutability last year without paying this
price:
http://svn.apache.org/repos/asf/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?p=1305548
This design was sacrified for the sake of implementing a "by the book"
builder pattern that brings no real benefit in term of usability. It's
just a useless layer of complexity.
Emmanuel Bourg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org