ZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agoFunctional bros be likelemmy.worldimagemessage-square58fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageFunctional bros be likelemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agomessage-square58fedilink
minus-squarejkrtn@lemmy.mllinkfedilinkarrow-up0·8 months agoI think using both is normal. Closures and objects are duals of each other. Do whatever is understandable and maintainable, neither paradigm is magic.
minus-squarelemmesay@discuss.tchncs.delinkfedilinkarrow-up0·8 months agothat’s a nice way to look at it. thanks!
minus-squareKogasa@programming.devlinkfedilinkarrow-up0·8 months agoIs the duality statement meant to be true in a technical sense?
minus-squarejkrtn@lemmy.mllinkfedilinkarrow-up0·8 months agoYeah! For example, if the language allows closures to capture state, they can act like properties on an instance.
I think using both is normal. Closures and objects are duals of each other. Do whatever is understandable and maintainable, neither paradigm is magic.
that’s a nice way to look at it. thanks!
Is the duality statement meant to be true in a technical sense?
Yeah! For example, if the language allows closures to capture state, they can act like properties on an instance.
I don’t see the duality