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

Refer to current instance of a class #12

Open
calebhearth opened this issue Jan 16, 2013 · 2 comments
Open

Refer to current instance of a class #12

calebhearth opened this issue Jan 16, 2013 · 2 comments

Comments

@calebhearth
Copy link
Owner

  • this
  • @
  • self
  • me

My vote is for @. Recursion looks like

fib-r(n)
  @(n - 1) + @(n - 2)

Thoughts?

@halogenandtoast
Copy link
Collaborator

I don't think that makes sense for recursion. What if this method was inside of a class, then @ can't refer to the class.

@calebhearth
Copy link
Owner Author

Yeah I guess it doesn't work for both self and recursion.

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

2 participants