Missing python-like chaining in D

forkit forkit at gmail.com
Wed Feb 23 03:24:04 UTC 2022


On Tuesday, 22 February 2022 at 09:00:10 UTC, Stanislav Blinov 
wrote:
>
>
> Call it a habit, although I'd say it's more of an allergy to 
> error-prone practices.

I accept, that 'perhaps' less distain and *confusion* would have 
emerged, had I provided a more intuitive example of the concept..


void foo(int val) if(0 < val <= (4294967295 / 2))
{
     return val * 2;
}

..nonetheless...go ahead...destroy!



More information about the Digitalmars-d mailing list