News for hackers. Stuff that matters.
Re:"14 Years of Go" by Rob Pike by campbel on Tuesday February 27, 2024 @01:50PM (#39527941)
Operators for primitive types are fine, they are well defined by the language and consistent across programs. Operator overloading is going to change behavior between programs which puts extra cognitive load on the reader.

That said, Go sticks to the most basic operator implementation (strings, numbers etc...). Go doesn't support `+` on slices for instance.

There are no comments on this comment yet.