list literal gotcha and suggestion
jjb at google.com
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 apache.org>wrote:
> 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.
More information about the coin-dev