Allowing Expressions such as (low < value < high)

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 9 12:31:30 PDT 2014


On Tuesday, 9 September 2014 at 08:50:51 UTC, Dejan Lekic wrote:
> It is not just that... Imagine this (nothing prevents you from 
> doing it):
>
>    if (foo < bar < baz < trt < mrt < frt /* etc */) {}

Is this bad compared to something like

areStrictlyOrdered(foo, bar, baz, trt, mtr, frt)

?


More information about the Digitalmars-d-learn mailing list