3 ms·
> Well by that reasoning there's never any need for function purity since you can't eliminate global state on current computer designs. If you care about purit
by lmm 10y ago
> Well by that reasoning there's never any need for function purity since you can't eliminate global state on current computer designs.
If you care about purity you don't use spawn-like functionality at all.
> C easily allows you to have multiple functions. exec_with_current_state or something.
That doesn't help. You'd need to have one variant where you just want to change the working directory, one variant where you just wanted to set an environment variable, one variant where you want to do both, one variant where you want to run as a different UID and change working directory but not touch the environment variables...