News for hackers. Stuff that matters.
Re:Evolving Scala by adrianton3 on Wednesday March 26, 2025 @06:15AM (#43480574)
> Heavy use of symbolic operators has thankfully fallen out of style.

I assume this refers to operator overloading. I think `a + b - c` looks way more readable than `a.add(b).sub(c)` and I'm happy when a language lets me define my own operators for vectors/matrices but I also have a side-curiosity: do they ever have a good use case outside of a math context? I never heard anyone praise `<<` `>>` in C++ for ex.

Re:Evolving Scala by threeseed on Wednesday March 26, 2025 @06:20AM (#43480598)
It's mainly about libraries implementing their own symbols e.g. ~>, ~>>, >->, λ

Each of which was specific to that library and would confuse new developers beyond belief.

Re:Evolving Scala by nsonha on Wednesday March 26, 2025 @06:29AM (#43480646)
The majority of code is not math. I prefer if languages have a math dsl, only in which, the math operators become available.

I actually do like symbols as opposed to words (+ instead of append, : instead of as, < instead of extends, -> instead of function etc). They just need to have stable meaning, which conflicts with operator overloading/math.