Please, where is Nothing/nothing declared?
Thank you ahead of time.
1 Like
On the phone now so not sure, but I would try @edit Nothing()
to see where the nothing type is defined. Not sure how to easily find the location of the definition of nothing
, though I’d guess it might be close to the type?
It’s implemented in C. See, e.g., here: julia/jltypes.c at 4d50ff87fac20ada6f32041927dd55907796bde3 · JuliaLang/julia · GitHub
2 Likes
I suspect this is a XY problem. What are you trying to do?
3 Likes
Out of curiosity, why does it need to be implemented in C?
My guess is that it’s for bootstrap reasons: Nothing
may be needed by other parts of the code that are written in the C side. Apart from bootstrap, I wouldn’t see many reasons for it not to be defined in Julia as a singleton struct like Missing
2 Likes