Message from C, C++ discussions

November 2019

— Okay


What optimizations? Note from stackoverflow:
"const is pointless when the argument is passed by value since you will not be modifying the caller's object."
It's about self-documenting your code and your assumptions.
If your code has many people working on it and your functions are non-trivial then you should mark "const" any and everything that you can. When writing industrial-strength code, you should always assume that your coworkers are psychopaths trying to get you any way they can (especially since it's often yourself in the future).
Besides, as somebody mentioned earlier, it might help the compiler optimize things a bit (though it's a long shot).

— Https://

— I see but moving primitives like int or a pointer is nonsense

— But it could make sence on something like a string or a vector but they are seldom passed by value

— Definitely

— :)

— Can anyone suggest good resource to learn advance oops concept??

— #googleit

— Http://

— Hi everyone here

— Anyone to recommend for me agood app for *xcode*