| ▲ | sroerick 3 hours ago | ||||||||||||||||||||||
> What is a pure transformation. I don't know! Can you explain it, or how I would use it for this application? > And the reason people are not willing can be because developers don't choose their tools through rational evaluation, or may be some irrational one IDK. I think "do the tools exist in the world" is a pretty rational evaluation. I'd love to see the FP equivalent! | |||||||||||||||||||||||
| ▲ | 1718627440 3 hours ago | parent [-] | ||||||||||||||||||||||
> I don't know! A pure function is a function whose output only depends on the paramters and not has any internal state. Which in my opinion is a somewhat useless distinction, because you can make your state/instance/whatever the first parameter, (what C and Python do) and tada, every function that doesn't use globals (or static in C), is a pure function. | |||||||||||||||||||||||
| |||||||||||||||||||||||