# Creating a struct containing "derived variables"

**URL:** <https://discourse.julialang.org/t/creating-a-struct-containing-derived-variables/80841>\
**Category:** New to Julia\
**Tags:** question, struct\
**Created:** [May 10, 2022, 7:49pm UTC](https://discourse.julialang.org/t/creating-a-struct-containing-derived-variables/80841 "2022-05-10T19:49:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/224680_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [May 10, 2022, 8:31pm UTC](https://discourse.julialang.org/t/creating-a-struct-containing-derived-variables/80841/4 "2022-05-10T20:31:08Z")

</div>

You may also want to take a look at the not-so-well-known [`Base.@kwdef`](https://discourse.julialang.org/t/what-does-kwdef-do/51973) macro

---

_[View the full topic](https://discourse.julialang.org/t/creating-a-struct-containing-derived-variables/80841)._
