bug in grammar with ?:

ketmar ketmar at ketmar.no-ip.org
Tue Sep 17 18:42:28 UTC 2019


Brett wrote:

> Makes sense, seems bad though... can introduce severe bugs in code if 
> allowed. While using ?: there is not such a common idiom, using >= (or <= 
> is)
yeah. that's why ternary is not recommended to use -- it is not always 
obvious what is a condition there. ternary has one of the lowest 
priorities, and it is right-associative too.


More information about the Digitalmars-d mailing list