Subprogram Implementation and Scope 4 - Closures
Jacob Schrum Jacob Schrum
17.4K subscribers
741 views
0

 Published On Jul 18, 2022

This video introduces closures, which are functions that maintain state between function calls. They can remember what the values of variables were from previous function calls, but those variables are not global. Examples are given in both Python and Common Lisp, and the idea of a closure is then contrasted with the idea of maintaining state within a class, as done in Object Oriented Programming with an example in Java.

show more

Share/Embed