Skip to content

Making self implicit in objects #68

Description

@MetaMemoryT

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions