3 ms·
This is why C++ is so great for big projects. You start to run into many cases where overloading operators is the only natural thing to do, and almost all of th
by technoguyrob 19y ago
This is why C++ is so great for big projects. You start to run into many cases where overloading operators is the only natural thing to do, and almost all of the semantic information (type, constness, etc.) is kept track of for you so if someone later comes and tries to modify a const parameter in some method, for example, the error is caught in compile-time! Sure, it takes a lot more code than Python or Ruby or PHP, but it definitely has its advantages.