What is a closure? I keep reading this word in programming, but never got a good explanation.
Ene Uran
638
Posting Virtuoso
Recommended Answers
Jump to PostA closure is a block of code that can be passed as an argument to a function call. In languages like Lisp and Ruby closures are easily implemented. In Python you can do it, but it is a bit more code. Lambda is often used for that.
Here would …
All 3 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
azimuth0
1
Light Poster
Ene Uran
638
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.