Hacker News new | past | comments | ask | show | jobs | submit login

Most uses of operator overrides in the Scala standard library make complete sense.

Want to add a value to a (mutable) Seq? Use +=.

Want to add a value and return a new Vector? Use +.

Want to build a new list that is the concatenation of two Lists? Use ++.

sbt is probably where you encountered "weird" operators, but their use has declined over the past few years from what I've seen.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: