re: What simple things annoy you about your favourite programming languages? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Java Collections. Good stuff, but the API just didn't advance with time: Map.get(Object) You never know for sure if your key is a valid para...
 

YES. This is very annoying.

They're not part of the core language and you probably already know about them, but for those who don't:

Google Guava has Lists: Lists.newArrayList(E... elements)

Implementation: github.com/google/guava/blob/maste...

And (of course) Kotlin has the lovely arrayListOf(...)

kotlinlang.org/api/latest/jvm/stdl...

code of conduct - report abuse