# FlexUnits & Structs

**URL:** <https://discourse.julialang.org/t/flexunits-structs/142738>\
**Category:** General Usage\
**Created:** [November 3, 2026, 4:53pm UTC](https://discourse.julialang.org/t/flexunits-structs/142738 "2026-11-03T16:53:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jake](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jake/32/46007_2.png) [@Jake](https://discourse.julialang.org/u/Jake)\
**Post date:** [November 4, 2026, 1:01pm UTC](https://discourse.julialang.org/t/flexunits-structs/142738/3 "2026-11-04T13:01:03Z")

</div>

That works. What confuses me is that for another struct the syntax above does work. I was trying to figure out why it works for one struct and not another. The syntax `(; num, leng)` does work for [tuple construction](https://discourse.julialang.org/t/destructuring-syntax-in-julia-1-7/68236/39). Perhaps I just stumbled across an idiosyncracity? Oh I think I figured out the difference, the case where it does work, the struct definition starts with `@kwdef struct ....`. I guess the @kwdef allows the syntax starting with the semi-colon.

---

_[View the full topic](https://discourse.julialang.org/t/flexunits-structs/142738)._
