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

Derek Parnell derek at psych.ward
Sun Jun 10 08:31:58 PDT 2007


On Sun, 10 Jun 2007 10:46:40 -0400, 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.

No, thank you. Not that I'm an expert but this paradigm seems to be to have
been tried and found wanting.

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

Yes, please. Let's make it harder to code accidental mistakes and easier to
code safety.

-- 
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell



More information about the Digitalmars-d mailing list