Re:Double Brace Initialization in Java
by chamakits on Sunday August 19, 2012 @12:47AM
(#4403223)
I had known of this before, and I'm fairly certain I've used it before. However, one thing I didn't consider is the equals issue commented on the site. As attractive as it may be to use, I think from now on I will refrain from using the double braces.
[ Parent
| on HN ]
> I had known of this before, and I'm fairly certain I've used it before.
I consider myself pretty liberal when it comes to coding standards and being clever, but this is something that will badly piss me off. I can't quite put my finger on why I feel so, considering I am perfectly fine with most of the perl tricks. For example, https://gist.github.com/3392206 looks good to me(you are using Perl, you should know about list and scalar contexts).