@bhsharp @Jonathan_Blow If someone is modifying code and _const_ is the only thing telling them what they're doing, you have big problems.
-
-
Replying to @cmuratori
@cmuratori@Jonathan_Blow If you give me an accessor that returns a non-const reference you are telling me it is safe to modify that value.1 reply 0 retweets 0 likes -
Replying to @bhsharp
@bhsharp@Jonathan_Blow The whole situation you're describing is something that should not be happening in the first place.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@Jonathan_Blow "The situation you're describing is not something that I would ever personally code, so I am unconcerned by it."2 replies 0 retweets 0 likes -
Replying to @bhsharp
@cmuratori@Jonathan_Blow There, I have translated your statement into one that is reasonable.1 reply 0 retweets 0 likes -
Replying to @bhsharp
@bhsharp@Jonathan_Blow Well, I feel like I would have several concrete reasons why you should not be returning a reference in your example.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@bhsharp@Jonathan_Blow This has nothing to do with me personally, I just suspect that the situation would be an example of a bad API.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@bhsharp@Jonathan_Blow Maybe it wouldn't, but I strongly suspect it would. So it's hard for me to see it as an argument for const.2 replies 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@Jonathan_Blow I don't know your attitude towards data publicity in classes/structs, which determines a lot of this conversation1 reply 0 retweets 0 likes -
Replying to @bhsharp
@bhsharp@Jonathan_Blow There should be no data exposed to people who don't know how to access it is my general rule.3 replies 0 retweets 0 likes
@bhsharp @Jonathan_Blow So if you have to say "const" to tell someone its const, that should never have been in an .h file.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.