Poll: Would you like to try const-by-default or not?

Regan Heath regan at netmail.co.nz
Sun Jun 10 09:52:23 PDT 2007


Jarrett Billingsley Wrote:
> This is not a discussion thread.  I think we've discussed enough.  :)
> 
> Basically there are these possible const implementations (there are others, 
> but for the sake of simplicitly, I'll keep this poll to 2):
> 
> 1) C++ style const, where you mark anything that should be const as such.

I just wanted to note that "marking" in this case was the addition of 'in', not 'const' as in C++.  I don't want us miss-representing the option, especially as I am going to... (continued below)

> 2) Parameters are const-by-default, and must be marked mutable otherwise. 
> Locals, fields etc. are still mutable by default.

vote for this one of course!

Unfortunately I suspect the people with the most influence over Walter, and by this I mean people he has talked about these sorts of things for a long time, has a healthy respect for, and for good reason, are voting the other way.  Which makes me sad.

Regan



More information about the Digitalmars-d mailing list