On Thursday, 11 October 2018 at 23:17:57 UTC, Jonathan M Davis
wrote:
On Thursday, October 11, 2018 8:35:34 AM MDT James Japherson
via Digitalmars-d wrote:
Certainly, major languages like C, C++, Java, and C# all do it
the way that D does, and they all have the same kind of
precedence for the ternary operator that D does.
No, the off man out is C++. it's the only one with the priority
of the ternary equal to assignments. All other languages do it
like C, i.e. with a higher priority for ?:
C++ is the annoying one (as always) here.