Missing python-like chaining in D

monkyyy crazymonkyyy at gmail.com
Fri Feb 25 02:10:29 UTC 2022


On Monday, 21 February 2022 at 09:29:56 UTC, forkit wrote:
> It seems to me, that D is a language where python like chaining 
> would be right at home.
>
> writeln(1 < 2 < 3 < 4 > 3 == 3); // true
>
>
> So why doesn't D have it already ;-)

I agree there should be something to mean `1<n<3`; but further 
seems like a meme

there's a "in" keyword maybe `n in 1..3` or sometin


More information about the Digitalmars-d mailing list