Re:Two Years of Functional Programming in JavaScript: Lesson...
by scottmf on Friday April 13, 2018 @01:47AM
(#16827395)
Do you have any data to show that this is a real concern with JS?
[ Parent
| on HN ]
Re:Two Years of Functional Programming in JavaScript: Lesson...
by tracker1 on Friday April 13, 2018 @10:09AM
(#16830111)
It may depend on the context, and with some VERY large data models, something like even Redux would be less efficient. TBH though, I find that practicing FP in JS even in a less pure form isn't so bad. I tend to prefer shallow clones as responses in favor over mutations. Though I will mutate an object, when it's exclusively inside a function/module and sealed from the outside so that such mutations are at least in isolation.