4 ms·
A language without operator overloading is non-starter.
by Conscat 3y ago
A language without operator overloading is non-starter.
- catlifeonmars 3y agoFor which use case?
- omginternets 3y agoFunny, for me it’s the other way around. Ain’t no way I’m going back to the land of C++ operator abuse, where ‘+’ doesn’t even mean ‘+’ anymore.
- Conscat 3y agoWithout operator overloading, you cannot define arithmetic data types that have a homogenous API with fundamental types. Since math is.. basically all that computers do aside from some IO here and there, that's means a language without operator overloading is a domain-specific language. Curiously, none of these languages that lack operator overloading come close to covering all of the common use cases for math, except perhaps Odin.
- keybored 3y agoA language without user-defined operators is a non-starter. ;)