macropy icon indicating copy to clipboard operation
macropy copied to clipboard

Making self implicit in objects

Open MetaMemoryT opened this issue 9 years ago • 0 comments

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

MetaMemoryT avatar Aug 24 '15 20:08 MetaMemoryT