I'm pretty sure I'm not the first one to think about this; so what would you seasoned D'ers say?
What are (dis)advantages of using pure and immutable by default?
Bahman Movaqar via Digitalmars-d-learn Mon, 07 Sep 2015 03:46:56 -0700
It seems to me a good practice to mark all functions that I write
as `pure` and define all the variables as `immutable`, unless
there is a reason not to.
I can see some serious advantages of this, most notable of which
is minimum side-effect and predictability of the code. However I
suppose it's going to impact the performance and memory footprint
as well, though I have no idea how deep the impact will be.
- What are (dis)advantages of using p... Bahman Movaqar via Digitalmars-d-learn
- Re: What are (dis)advantages o... anonymous via Digitalmars-d-learn
- Re: What are (dis)advantag... Bahman Movaqar via Digitalmars-d-learn
- Re: What are (dis)adva... anonymous via Digitalmars-d-learn
- Re: What are (dis)... Bahman Movaqar via Digitalmars-d-learn