Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn't closure be more like a single-method-objectin a class that has no class methods?

A clojure carries its own states (variables) that it, only, can modify. While the states (variables) of an object can be changed by another method for the same object, or by a class method, or even methods from another object if it uses method variables.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: