Object is data wrapped in methods.
Closure is subroutine wrapped in data
It's actually the other way around. An object exposes data, a closure exposes code. As Tom C. used to say:
An object is data that knows which code acts on it.
A closure is code that knows which data to act on.
Abigail
In reply to Re: (On Speed Diff, etc.) Closure on Closures (beta)
by Abigail-II
in thread Closure on Closures
by broquaint
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |