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

Overloading getproperty instead of getindex? #91

Closed
giordano opened this issue Dec 18, 2017 · 1 comment
Closed

Overloading getproperty instead of getindex? #91

giordano opened this issue Dec 18, 2017 · 1 comment

Comments

@giordano
Copy link
Member

Now that JuliaLang/julia#24960 has been merged, it's possible to do fancy things with a.b syntax. I think it could make sense to use this feature in FITSIO.jl, so that fields can be accessed with the more natural syntax fits.field, rather than fits[:field]. What do you think?

It should be easy to deprecate the old syntax in favor of the new one, however I fear that all this will require Julia 0.7.

@giordano
Copy link
Member Author

My bad memory... I intended to open this issue in WCS :-)

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