This post originated from an RSS feed registered with Java Buzz
by Marc Logemann.
Original Post: on TSS thread "Syntactic Sugar for Lists and Maps"
Feed Title: Logemann Blog
Feed URL: http://www.logemann.org/blojsom/blog/default/?flavor=rss2
Feed Description: Marc's thoughts on Java and more
On TSS there is a quite interessting article about syntactic sugar for Lists and Maps. But its only interessting in terms of "how ridicolus the proposal is". Its about implementing a shortcut for initializing lists with objects in java without going the normal "call constructor, call methods for each object addition" way.
First of all, i dont like the VM chosing "sensible default" List implementations for me. The other point is, how often do you manually fill lists with pre-defined objects? I rarely do. In fact 95% of my lists are populated by XML binding frameworks, spring contexts, persistence engines, you name it.