list literal gotcha and suggestion

Per Bothner per at bothner.com
Wed Oct 7 09:30:41 PDT 2009


On 10/07/2009 08:55 AM, Reinier Zwitserloot wrote:
> So, when passing {1, 2, 3} to a method that takes 1 Collection, it
> will not, in fact, work without an explicit cast, then. Okay. As I
> said, I think that's quite a serious use case.

Frankly, I suspect it's pretty rare to use a plain "Collection",
or that you'd want to pass a literal to a method that takes a Collection
argument.  So I don't see it as a important use case.  YMMV.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the coin-dev mailing list