Missing python-like chaining in D

Timon Gehr timon.gehr at gmx.ch
Wed Feb 23 04:53:32 UTC 2022


On 23.02.22 05:31, Walter Bright wrote:
> On 2/22/2022 5:03 PM, Timon Gehr wrote:
>> vs:   low <= a[2*i+1] && a[2*i+1] <= high
> 
> If the expressions do not have side effects, any half decent compiler 
> will not recompute them.

Definitely, it's mostly a question of readability for me. But it's not a 
very big deal. (E.g., syntax for tuple unpacking would be significantly 
more impactful.)


More information about the Digitalmars-d mailing list