# How to simplify the code in constructing struct

**URL:** https://discourse.julialang.org/t/how-to-simplify-the-code-in-constructing-struct/70411
**Category:** New to Julia
**Tags:** inheritance, struct
**Created:** [October 26, 2021, 3:07pm UTC](https://discourse.julialang.org/t/how-to-simplify-the-code-in-constructing-struct/70411 "2021-10-26T15:07:39Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)
#### Post date: [October 31, 2021, 3:46am UTC](https://discourse.julialang.org/t/how-to-simplify-the-code-in-constructing-struct/70411/6 "2021-10-31T03:46:09Z")

</div>

You might want to have a look at these packages:

- [YingboMa/Unityper.jl (github.com)](https://github.com/YingboMa/Unityper.jl)
- [rjplevin/Classes.jl: A simple, Julian approach to inheritance of structure and methods (github.com)](https://github.com/rjplevin/Classes.jl)
- [gcalderone/ReusePatterns.jl: Implement composition and concrete subtyping in Julia. (github.com)](https://github.com/gcalderone/ReusePatterns.jl)
- [ANN: StructuralInheritance.jl - Community - JuliaLang](https://discourse.julialang.org/t/ann-structuralinheritance-jl/16515)
- [rafaqz/Mixers.jl: Julia mixin macros. Mixed, not stirred (github.com)](https://github.com/rafaqz/Mixers.jl)
- [JeffreySarnoff/TypedDelegation.jl: Easily apply functions onto fields’ values. Use a struct’s fields as operands for operations on values of that type. (github.com)](https://github.com/JeffreySarnoff/TypedDelegation.jl)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-simplify-the-code-in-constructing-struct/70411)._
