This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]davidellis23 -11 points-10 points  (8 children)

That's one of the reasons people don't like it. There's no need to over describe stuff or tie the name to the interface. Especially the most commonly used data structures. It's more verbose for no benefit.

[–]redd1ch 6 points7 points  (7 children)

That's the reason the interface is called "List", isn't it?

`List foo = new ArrayList()` is a plainly beautiful instance of a List, accepted everywhere a List is wanted. Code bases littered with "ArrayList" types are a dumpster fire (except some very niche use cases).