macropy
macropy copied to clipboard
Making self implicit in objects
Hi, I think an interesting example of macropy would be to make self implicit in objects:
http://code.activestate.com/recipes/362305-making-self-implicit-in-objects/
How would one implement this in macropy?
Could this be included in the examples?
Would macropy enable a way to avoid having to subclass LocalsFromInstanceVars (see url above) in order to make it work?
Could it be implemented similar to quick_lambda except:
any @
s within the wrapped method become an implicit self reference? Thus similar to coffeescript / ruby ?
related post: http://www.artima.com/weblogs/viewpost.jsp?thread=239003