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

Documentation missing explanation on getter/setter macros and obj.@var syntax #3135

Closed
paddor opened this issue Aug 11, 2016 · 1 comment
Closed

Comments

@paddor
Copy link
Contributor

paddor commented Aug 11, 2016

I just noticed the documentation seems to be missing the description of the getter/setter macros. The property macro is used in the Structs page though.

Also, I saw in source code that obj.@var is valid, and I guess it's field access without "method call" (even if there was a getter method that might do something else in addition)? This syntax isn't explained either in the documentation.

Of course one can learn these things through other ways too. Just putting it out there so it won't get forgotten in case the documentation is supposed to be comprehensive. If wanted, and if my assumptions are correct, I could describe it somewhere. But I doubt my writing style is as beautiful as the one in Crystal's documentation. :)

@paddor
Copy link
Contributor Author

paddor commented Aug 11, 2016

Sorry, moving this to crystal-book.

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