sort API design

Dennis dkorpel at gmail.com
Wed Nov 20 11:20:40 UTC 2019


On Wednesday, 20 November 2019 at 09:33:25 UTC, Johannes Riecken 
wrote:
> Or are there any ideas in programming language research that 
> would help with such a case?

Try to make it a habit to use `const` instead of `auto` if you 
don't expect the variable to be mutated.

```
const arr0 = ["foo", "bar", "Baz"];
```

This is obviously not a fancy beginner-friendly solution like the 
thing mipri describes, but it is something that you can start 
doing today that might help.


More information about the Digitalmars-d mailing list