another example of why Iām really looking forward to when we have function currying in 1.1.
Not sure leaving undefined references in your array is a good practice, however. This is what missing was made for (or nothing, if you want it to throw errors).
What I think you are saying is āYou canāt do that because the OP wants the set of things which are considered ānullā to be the empty setā.ā And Iām saying: Julia provides us with objects which are specifically intended to be considered ānullā, so why not take one of those as the only element in the set of things which should be considered ānullā?
I only bother to mention it because (at least in my experience) itās not a common practice for a package to provide (as output) arrays containing undefined references and expecting someone to handle that, but it is not so unusual for them to provide arrays contianing nothing or missing.
Of course, I have no idea what the OP is trying to do, so I donāt know what the appropriate choice is here.
No I didnāt. I said that you shouldnāt (editedā¦) consider everything about āleaving undefined references in your arrayā being ābad practiceā (thatās what I specifically replied to). I never once mentioned what he want since he didnāt mention and I donāt want to guess. Iām only saying that you shouldnāt just see undefined reference and claim they should all be replaced by missing or nothing and I even agree that unless you need to handle Any (i.e. all types) missing or nothing could be fine.