• frezik@midwest.social
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    8 hours 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.