JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

Overloading getproperty instead of getindex? #91

Closed giordano closed 6 years ago

giordano commented 6 years ago

Now that https://github.com/JuliaLang/julia/pull/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 commented 6 years ago

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