943
you are viewing a single comment's thread
view the rest of the comments
[-] frezik@midwest.social 24 points 2 years ago* (last edited 2 years ago)

Right, I think the two aren't as different as they appear. You can think of a closure as an object with just one method.

If OO programming is fundamentally about objects sending messages to each other, then there are many ways to approach that. Some of those ways are totally compatible with functional programming.

The legacy of C++ has dominated what OOP is "supposed" to be, but it doesn't have to work like that.

this post was submitted on 28 Feb 2025
943 points (99.3% liked)

Programmer Humor

33145 readers
1013 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS