Refactoring Code

Basile B. b2.temp at gmx.com
Wed Mar 6 00:50:45 UTC 2024


On Saturday, 2 March 2024 at 20:27:59 UTC, Walter Bright wrote:
> https://github.com/dlang/dmd/pull/16280/files
>
> Sometimes if you stare at code long enough, its underlying 
> simplicity emerges.

that's exactly how I get that the "dot assign" is a thing.

```
current = current.next;
```

is actually a binary assign which can be rewritten

```
current .= next;
```

Staring at code involving trees and stacks.

Keep calm ladies, I dont plan to propose that for D, it's just an 
example of how staring at code is actually a good thing.


More information about the Digitalmars-d mailing list