Self Hell

More stateful functions.

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

I've found that a hybrid approach works best. All of your class methods that actually do computation should be moved into closures, and extensions to clean up syntax should be kept in classes. Stuff the closures into classes, treating the class much like a namespace. The closures are essentially static functions, and so do not require selfs*, even in the class.

Name:
Mail: (not shown)

Please type this: