Re:Closures and Objects Are Equivalent (2013)
by tempodox on Sunday November 20, 2022 @04:37AM
(#33679625)
> an object is a struct with associated functions.
That's true, and if you add an “apply” operator (`operator ()`), then your thing becomes a “function object” and your instance variables are the closure environment. quod erat demonstrandum.
That's true, and if you add an “apply” operator (`operator ()`), then your thing becomes a “function object” and your instance variables are the closure environment. quod erat demonstrandum.