Hacker News new | ask | show | jobs
by cheriot 3314 days ago
Why do we use operators at all? We can just as easily write out plus, minus, multiply, and divide.

Concatenating to a list and pattern matching are extremely frequent operations in Scala. Some of the operators they use have been in use for decades in the languages that influenced Scala.

Like many features across many languages it can be taken too far at times and people that enjoy Scala talk about them all the time. That said, the similarities of your example to operators I use at the command line every day makes it nice to read for me.