ZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agoFunctional bros be likelemmy.worldexternal-linkmessage-square60fedilinkarrow-up1313arrow-down117
arrow-up1296arrow-down1external-linkFunctional bros be likelemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agomessage-square60fedilink
minus-squareKogasa@programming.devlinkfedilinkarrow-up1arrow-down2·8 months agoIs the duality statement meant to be true in a technical sense?
minus-squarejkrtn@lemmy.mllinkfedilinkarrow-up1·8 months agoYeah! For example, if the language allows closures to capture state, they can act like properties on an instance.
minus-squarejendrik@discuss.tchncs.delinkfedilinkarrow-up1·8 months agoA closure is a function with captured state. An object is state with methods.
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
A closure is a function with captured state. An object is state with methods.