# Default value of \*some\* fields in a mutable struct

**URL:** https://discourse.julialang.org/t/default-value-of-some-fields-in-a-mutable-struct/33408
**Category:** General Usage
**Tags:** struct
**Created:** [January 15, 2020, 5:31pm UTC](https://discourse.julialang.org/t/default-value-of-some-fields-in-a-mutable-struct/33408 "2020-01-15T17:31:51Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![Jakub\_Wronowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakub_wronowski/32/204030_2.png) [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)
#### Post date: [January 16, 2020, 1:00pm UTC](https://discourse.julialang.org/t/default-value-of-some-fields-in-a-mutable-struct/33408/19 "2020-01-16T13:00:49Z")

</div>

Awesome! It can be wrapped into a macro for nicer syntax. Great solution.

---

_[View the full topic](https://discourse.julialang.org/t/default-value-of-some-fields-in-a-mutable-struct/33408)._
