Stick a fork in it
renoX
renosky at free.fr
Fri May 11 12:06:19 PDT 2007
Bill Baxter a écrit :
> Don Clugston wrote:
>> Mentally, I can cope with const if I view it as abbreviation of
>> 'constrained' (if you think of it as 'constant', IMHO it gets horribly
>> nonintuitive). It's obvious that 'invariant' is an extreme case of
>> 'constrained'.
>
> That's a great way to remember it. That plus Chris's "more letters
> means more strength than const", and there's no way I'll ever forget again.
>
> --bb
While this makes it easy to remember, I can't help but thinking about
all these people who claims that functional programming is better..
If they're right then it should be totally the opposite:
invariants by default and if we want to have a variable then we have to
precise it..
renoX
More information about the Digitalmars-d-announce
mailing list