News for hackers. Stuff that matters.
Re:Pretending OOP Never Happened by btilly on Friday May 15, 2020 @08:45PM (#23199309)
do you mean that in the way of "an object is a poor person's closure"?

Objects are a poor man's closures. And closures are a poor man's objects.

Modern languages have both. And they serve different purposes.

Re:Pretending OOP Never Happened by uryga on Friday May 15, 2020 @09:12PM (#23199491)
i intended to put "(and vice versa)" in a footnote, but forgot about it! you can see a relic of that in the last paragraph.

though i must say, i'm pretty happy in languages that have closures but don't have objects, as long as there's a nice way to do ad-hoc polymorphism (like traits/typeclasses)