invariant()
Kristian Kilpi
kjkilpi at gmail.com
Mon Apr 13 02:09:02 PDT 2009
On Sun, 12 Apr 2009 22:00:43 +0300, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Jarrett Billingsley wrote:
>> Whether it'll be going away, I'm not sure. I guess Walter is the only
>> one who knows that.
>
> I see no point to breaking invariant() again.
Will 'invariant' as a type modifier go away? If so, then of course the
parentheses could be dropped out from the class invariant. Or, both the
syntaxes ('invariant {}' and 'invariant() {}') could be supported (imho,
only one syntax would be better though).
Currently the syntaxes of the class invariants and unit tests are a bit
inconsistent, and I don't like it too much. :)
More information about the Digitalmars-d
mailing list