[Issue 10326] Disallow 'invariant' for immutable, allow class/struct invariants without (), and later disallow usage of ()

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 17 09:24:28 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=10326

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com

--- Comment #14 from yebblies <yebblies at gmail.com> ---
(In reply to Kenji Hara from comment #9)
> 
> Instead of that, how about to accept both invariant(){...}  and
> unittest(){...} ?

I think that's a good idea.  I see very little benefit to enforcing one syntax
over the other.  There doesn't seem much potential for confusion in having two
syntaxes if both unittest and invariant work the same way.

--


More information about the Digitalmars-d-bugs mailing list