Re:Why Learning Haskell/Python Makes You a Worse Programmer
by cgranade on Wednesday December 24, 2008 @06:11AM
(#408704)
Missing the application of Foo.description(). That said, I feel that compile-time failure is vastly underrated. Java is making even more progress on that front by introducing type checker frameworks with JSR 308.
result = join(new ArrayList<String>(){{ addAll(list); while(remove("")); }},"\n");
And as a bonus - for the extra few characters you typed, this will fail at compile time instead of runtime when the list turns out to contain FooBars instead of strings.