Friday, October 24, 2025

Objects and Closures

Yes, this is another short post about programming theory.  I'm a geek.  It's what I think about at 2AM.


What is the difference between an object and a continuation?

An object is data with associated code.
A closure is code with associated data.
A continuation is a closure with a goto at the end.


That's it.  There's no need to overcomplicate these things.


No comments:

Post a Comment

I reserve the right to remove egregiously profane or abusive comments, spam, and anything else that really annoys me. Feel free to agree or disagree, but let's keep this reasonably civil.