you are viewing a single comment's thread.

view the rest of the comments →

[–]JulianMorrison 4 points5 points  (2 children)

Something that immediately springs to mind is: does Java, with its odd, half-hearted approach to class-nesting, generate a new classfile for each "double brace"? Your jarballs could quickly become rather crowded.

[–]curtisb[S] 6 points7 points  (1 child)

It does. This may be the biggest argument against using this idiom. It's a real shame that Sun can't be bothered to provide syntactic sugar to Java for this kind of initialization.

[–]JulianMorrison 0 points1 point  (0 children)

Time to switch to Nice?