Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making self implicit in objects #68

Open
MetaMemoryT opened this issue Aug 24, 2015 · 0 comments
Open

Making self implicit in objects #68

MetaMemoryT opened this issue Aug 24, 2015 · 0 comments

Comments

@MetaMemoryT
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant