3 ms·
There's nothing about operator overloading that requires OOP. Even in C++ you can overload an operator outside a class definition in a free function. For exampl
by overgard 8y ago
There's nothing about operator overloading that requires OOP. Even in C++ you can overload an operator outside a class definition in a free function. For example... https://stackoverflow.com/questions/2425906/operator-overloading-outside-class https://stackoverflow.com/questions/2425906/operator-overloa...
Also outside of numerical work and some set stuff there's not really that many times you actually need to overload operators.. And you can easily extend languages without objects (Lisp)