list literal gotcha and suggestion

Joshua Bloch jjb at
Thu Oct 1 07:44:21 PDT 2009

Of course you can do it with static methods and varargs, but it won't be as
pretty.  That's the whole idea of syntactic sugar: make common patterns easy
to read and write.


On Wed, Sep 30, 2009 at 12:24 PM, Paul Benedict <pbenedict at>wrote:

> Stephen,
> My apologies for not seeing that you already responded with a similar
> suggestion. I am glad to know that you and others are not alone in
> wanting static methods.
> PS: To those managing the Java language, please let's try to avoid
> having two ways of doing the same thing. If this proposal can be done
> with static methods and varargs, I find the utility of literal
> collections to be sorely diminished.
> Paul

More information about the coin-dev mailing list