I am very confused about the documentation of the isdefined function.
What exactly is the index mentioned in the documentation? Or the symbol (I assume a field in a struct)? The example with a = 1//2 is not very useful as it stands, given that it does not fully explain what is going on.
The symbol is explained in the docs, isn’t it? It’s the field name as you suggest. I think the index is just the index of the fields, but I agree the docs could be clearer on this, feel free to make a PR:
Let’s say that your responses should be included in the documentation.
But, apart from that… I have
julia> qd = 42
Pardon my obtuseness, but how exactly am I supposed to check that qd is defined? And no, I do not want to use the @isdefined macro. Must I use the version with the module as first argument?
Anyone is more than welcome to submit a patch to clarify the documentation. The isdefined docstring is in basedocs.jl, and you can click the edit button to modify it and propose a change.