Closures vs Objects Debate

The cluster centers on debates about closures in programming, particularly the adage 'closures are a poor man’s objects; objects are poor man’s closures,' exploring their definitions, equivalences, differences from lambdas, and implementations across languages like JavaScript, Ruby, and Rust.

📉 Falling 0.4x Programming Languages
3,013
Comments
20
Years Active
5
Top Authors
#4723
Topic ID

Activity Over Time

2007
13
2008
62
2009
146
2010
162
2011
244
2012
168
2013
241
2014
147
2015
170
2016
218
2017
187
2018
138
2019
140
2020
191
2021
164
2022
146
2023
210
2024
112
2025
137
2026
17

Keywords

e.g PHP thingys.html E.g ADT blogspot.com javac.info github.com csail.mit i.e closures closure objects lambdas man poor object function fn anonymous

Sample Comments

shaklee3 Dec 8, 2018 View on HN

Why do closures suck? What are they missing?

bfung Aug 21, 2023 View on HN

closures are a poor man's objects…

wonderzombie Aug 2, 2013 View on HN

"When will you learn? Closures are a poor man's object."

Closures really are poor man's objects.

pjmlp Feb 6, 2019 View on HN

Closures are poor man's objects and vice versa.

golergka Apr 28, 2020 View on HN

So, closures are indeed poor man's objects.

terryschiavo22 Apr 24, 2019 View on HN

What do first-class closures have to do with anything?

agumonkey Apr 12, 2015 View on HN

The use of 'closure' is an idiomatic shortcut to express that.

natmaster Nov 18, 2009 View on HN

Maybe I'm missing something here: but what's the point of closures without functions as first class variables?

btilly Apr 5, 2010 View on HN

That's why closures are a poor man's objects. :-)