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

"@" with no property compiles to "this", without the dot accessor symbol #4061

Closed
macgyver opened this issue Aug 17, 2015 · 4 comments
Closed

Comments

@macgyver
Copy link

More of a question than an issue, but the only reference to @ in the Coffeescript documentation is this:

As a shortcut for this.property, you can use @property.

You can also use @ as a replacement for this, e.g:

  render: ->
    ...
    @

I guess it's an undocumented feature... in your opinion is this a good practice? Is it safe to use or could it change in future versions?

@vendethiel
Copy link
Collaborator

This has been discussed to great length here: #1601 (and some other issues)

@macgyver
Copy link
Author

Great, thanks @vendethiel for the link.

On Mon, Aug 17, 2015 at 12:22 PM, ven [email protected] wrote:

Closed #4061 #4061.


Reply to this email directly or view it on GitHub
#4061 (comment).

@vendethiel
Copy link
Collaborator

I don't think poor ven wants to be mentioned here ;)

@macgyver
Copy link
Author

D'oh, I mixed up the display name in email with the user name

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

No branches or pull requests

2 participants