between and among: worth Phobosization? (reprise)

Jakob Ovrum via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 26 15:34:04 PDT 2015


On Thursday, 26 March 2015 at 22:30:54 UTC, H. S. Teoh wrote:
> As for combinations of < and <=, what about taking multiple 
> template
> arguments? E.g.:
>
> 	if (isOrdered!("<", "<=")(0, x, 10)) { ... }
>
>

In that case, wouldn't it be more readable to just do:

     if (0 < x <= 10) { ... }

?


More information about the Digitalmars-d mailing list