3 ms·
> `const` is a property of the binding, not the value. This is language-specific for Javascript. > It's not wrong in general. It's not wrong in general, but
by theseoafs 11y ago
> `const` is a property of the binding, not the value.
This is language-specific for Javascript.
> It's not wrong in general.
It's not wrong in general, but it's also not right in general. The pattern is completely orthogonal to purity. Whether a closure is pure depends on a lot of factors, like the types of things in the closure and the functions it calls.
- Arnavion 11y ago>This is language-specific for Javascript. I said that in the context of the article obviously, which is about JS.