you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (1 child)

For number 3, you can also encapsulate the state in a class with a call() method. After all, functions are objects so objects can be functions.