DEV Community

Discussion on: Use Closures for Memory Optimizations in JavaScript (a case study)

 
danielo515 profile image
Daniel Rodríguez Rivero

Yes exactly.
The author obviously has no idea of what curried functions are and why they are useful. Looks like he just discovered what closures are and wanted to write an article about it, even without knowing what they are useful for or what the term memory leak actually means. The example code proposed by @luke 知る has way more value and shows a better understanding of the topic than the article itself.

Thread Thread
 
hasnaindev profile image
Muhammad Hasnain

Let's cut him some slack, he's newbie. Instead, why don't you read one of my post and participate in the discussion? I'll be really grateful.

dev.to/hasnaindev/what-is-your-go-...