| ▲ | lelele 5 hours ago | |||||||||||||||||||||||||
> y'know you can check if an operator has been overloaded And there lies the problem with C++: to be sure, you have to check. C++ code can't be taken at face value -- the most innocuous-looking code could be a ticking bomb. | ||||||||||||||||||||||||||
| ▲ | pjmlp 4 hours ago | parent | next [-] | |||||||||||||||||||||||||
Just like any C function without looking into the translation unit, don't say you blindly believe on the function name. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | rfgplk 4 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
But isn't this a problem with all code? Looking at a Rust function signature how can you be sure that it does what it says it does? Or python? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | LoganDark 4 hours ago | parent | prev [-] | |||||||||||||||||||||||||
> C++ code can't be taken at face value -- the most innocuous-looking code could be a ticking bomb. You can't take C code at face value either. The name of a method or type doesn't tell you what it does. It could longjmp for all you know. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||