From the D Blog: Crafting Self-Evident Code in D

bachmeier no at spam.net
Tue Oct 3 16:15:55 UTC 2023


On Tuesday, 3 October 2023 at 12:01:56 UTC, Martyn wrote:

> Agreed. Even though I do like UFCS, I find the above confusing 
> to follow despite being more pleasing to the eye. I had to 
> break it down and, as Matheus already pointed out, looked 
> incorrect.

I normally avoid writing code like a.b.c.d.e.f because it 
obscures the intermediate steps. I define variables that hold the 
results of one or a small number of steps so I can track what the 
code is doing.


More information about the Digitalmars-d-announce mailing list