# Documenting elements of a struct

**URL:** <https://discourse.julialang.org/t/documenting-elements-of-a-struct/64769>\
**Category:** New to Julia\
**Tags:** documenter, struct\
**Created:** [July 16, 2021, 7:32pm UTC](https://discourse.julialang.org/t/documenting-elements-of-a-struct/64769 "2021-07-16T19:32:46Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![orome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/orome/32/26965_2.png) [@orome](https://discourse.julialang.org/u/orome)\
**Post date:** [July 18, 2021, 8:04pm UTC](https://discourse.julialang.org/t/documenting-elements-of-a-struct/64769/24 "2021-07-18T20:04:44Z")

</div>

> [@DNF](#):
>
> Fields are considered by many (me too) to be internal implementation details.

If that’s the case then they shouldn’t be publicly accessible, or the default behavior of `Base.getproperty` should be different. Relying on the absence of documentation to protect them seems like weak language design, but I’m sure this has been discussed before at length and there’s wisdom here that I’m missing.

---

_[View the full topic](https://discourse.julialang.org/t/documenting-elements-of-a-struct/64769)._
