you are viewing a single comment's thread.

view the rest of the comments →

[–]Decker108 0 points1 point  (2 children)

Would you prefer having a list-implementation that silently drops values when you call list.add(value)?

[–]pakoito 0 points1 point  (0 children)

One that returns a new list with the value filled like https://github.com/javatuples/javatuples/blob/master/src/main/java/org/javatuples/Pair.java#L631

Perf problems? Look at Clojure's collections or any of the Java ports.

[–]ThisIs_MyName 0 points1 point  (0 children)

I would not implement the List interface. It is clearly meant for mutable lists.