3 ms·
> References, at least in C++, are a horrible idea. Without an IDE, I have no way of knowing if a function can overwrite my local variable. Total hyperbole. If
by spacechild1 4y ago
> References, at least in C++, are a horrible idea. Without an IDE, I have no way of knowing if a function can overwrite my local variable.
Total hyperbole. If you don't use an IDE or an editor with plugins, that's your problem.
Also, I don't see how pointers and references are any different in this regard. Both can be const or non-const. Your 'ref' keyword would't achieve anything.