@ZILtoid1991 to Programmer [email protected]English • 8 months agoFunctional bros be likeimagemessage-square59arrow-up1313arrow-down116
arrow-up1297arrow-down1imageFunctional bros be like@ZILtoid1991 to Programmer [email protected]English • 8 months agomessage-square59
minus-square@[email protected]linkfedilink1•8 months agoYeah! For example, if the language allows closures to capture state, they can act like properties on an instance.
minus-square@[email protected]linkfedilink1•8 months agoA closure is a function with captured state. An object is state with methods.
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.