# Use a,b = (1,2) within struc definition?

**URL:** <https://discourse.julialang.org/t/use-a-b-1-2-within-struc-definition/100873>\
**Category:** General Usage\
**Tags:** struct\
**Created:** [June 27, 2023, 5:41am UTC](https://discourse.julialang.org/t/use-a-b-1-2-within-struc-definition/100873 "2023-06-27T05:41:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Alexander\_Knudson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexander_knudson/32/215656_2.png) [@Alexander\_Knudson](https://discourse.julialang.org/u/Alexander_Knudson)\
**Post date:** [June 27, 2023, 3:56pm UTC](https://discourse.julialang.org/t/use-a-b-1-2-within-struc-definition/100873/7 "2023-06-27T15:56:56Z")

</div>

Maybe an unrelated answer, but it seems like you want to be able to do struct destructuring? You can do that with keyword arguments. See this discussion: [https://discourse.julialang.org/t/unpacking-struct-properties/](https://discourse.julialang.org/t/unpacking-struct-properties/)

---

_[View the full topic](https://discourse.julialang.org/t/use-a-b-1-2-within-struc-definition/100873)._
