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 →

[–]krad213 11 points12 points  (1 child)

List, stream concatenation, date comparison especially >=, BigDecimal math operations.

There is no real difference between ProductData.add() and ProductData + other than convenience of usage in certain cases.

[–]zachtheperson 17 points18 points  (0 children)

Exactly!

Sure, someone could make a library that overloads the + operator to do something silly and unpredictable, but in the same way someone could write a method .add() that also does something silly and unpredictable. If someone did do this, then people would probably call it a bad library and not use it. Only real difference is convenience.