# Nothing/nothing location

**URL:** <https://discourse.julialang.org/t/nothing-nothing-location/84363>\
**Category:** General Usage\
**Created:** [July 17, 2022, 6:11pm UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363 "2022-07-17T18:11:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kurt/32/210394_2.png) [@kurt](https://discourse.julialang.org/u/kurt)\
**Post date:** [July 17, 2022, 6:11pm UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363/1 "2022-07-17T18:11:06Z")

</div>

Please, where is Nothing/nothing declared?  
Thank you ahead of time.

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [July 17, 2022, 6:27pm UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363/2 "2022-07-17T18:27:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [July 17, 2022, 6:38pm UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363/3 "2022-07-17T18:38:46Z")

</div>

It’s implemented in C. See, e.g., here: [julia/jltypes.c at 4d50ff87fac20ada6f32041927dd55907796bde3 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/blob/4d50ff87fac20ada6f32041927dd55907796bde3/src/jltypes.c#L2125)

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [July 17, 2022, 7:03pm UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363/4 "2022-07-17T19:03:56Z")

</div>

I suspect this is a [XY](https://xyproblem.info/) problem. What are you trying to do?

---

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [July 17, 2022, 11:10pm UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363/5 "2022-07-17T23:10:05Z")

</div>

Out of curiosity, why does it need to be implemented in C?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 18, 2022, 1:08am UTC](https://discourse.julialang.org/t/nothing-nothing-location/84363/6 "2022-07-18T01:08:35Z")

</div>

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`
