3 ms·
> The way const/immuatable works, makes some devs just give up and remove them from their code. That's true. The thing with D const/immutable is they are trans
by WalterBright 9y ago
> The way const/immuatable works, makes some devs just give up and remove them from their code.
That's true. The thing with D const/immutable is they are transitive, and the compiler means it. It's not a suggestion.
The advantage of enforced transitive const/immutable is, of course, is it's foundational if you want to do functional style programming.