2 ms·
The fundamental difference is this: a closure has a single operation; when you invoke it, it does that one thing. An object, in contrast, normally has many ope
by ScottBurson 11y ago
The fundamental difference is this: a closure has a single operation; when you invoke it, it does that one thing. An object, in contrast, normally has many operations, so to invoke one of them, you have to supply its name.
That's not a big difference, but it is a difference.