3 ms·
The first example code doesn’t look like anything you should ever do - use immutability and don’t write rust like C. The rest of the article is based on this u
by binarymax 3y ago
The first example code doesn’t look like anything you should ever do - use immutability and don’t write rust like C.
The rest of the article is based on this use case, so I don’t see the point.
Composability can be done in a functional style without mutating state. The outcome would likely be very different and easier with this approach if the time were taken to grok it.