[Issue 23349] Disallow assignments in ?: expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 22 12:59:09 UTC 2022


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

--- Comment #2 from Bolpat <qs.il.paperinik at gmail.com> ---
(In reply to RazvanN from comment #1)
> Why would we do this? The else-part is required to have parenthesis because
> of the ambiguity, but as far as I can see there is no way you could have an
> ambiguity for the assignment in the then-part.

It’s not about ambiguity, it’s about consistency.

--


More information about the Digitalmars-d-bugs mailing list