No parenthesis for assert?
Alex Rønne Petersen
xtzgzorex at gmail.com
Thu Jan 12 08:34:27 PST 2012
On 12-01-2012 16:57, Manfred Nowak wrote:
> Alex Rønne Petersen wrote:
>> Is there any reason parentheses are required
> Yes.
>
>> for all other use cases, it would be a nice thing to have.
> Maybe, but only when no `assert'-expression(!) is evaluated ever ...
> Because making parenthesis optional for `assert' would introduce
> ambiguities.
>
> -manfred
Right, it would only make sense when it's used as a statement
expression. In all other cases, it wouldn't work, of course.
- Alex
More information about the Digitalmars-d
mailing list