# Basic struct usage questions

**URL:** <https://discourse.julialang.org/t/basic-struct-usage-questions/68932>\
**Category:** New to Julia\
**Tags:** type, parametric-types, struct\
**Created:** [September 29, 2021, 1:30pm UTC](https://discourse.julialang.org/t/basic-struct-usage-questions/68932 "2021-09-29T13:30:20Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [September 29, 2021, 1:59pm UTC](https://discourse.julialang.org/t/basic-struct-usage-questions/68932/10 "2021-09-29T13:59:03Z")

</div>

> [@rdeits](#):
>
> Also, I think you’ve been misinformed about `Number` and `Unitful` :

Reference for question #2:

> [@Are generic types worth the complexity?](https://discourse.julialang.org/t/are-generic-types-worth-the-complexity/67658/3):
>
> It’s worth it to at least annotate argument types as AbstractVector or alike. Because it won’t be long before someone would like to pass an array view to a function that only accepts Vectors. I would not recommend constraining the element type of collection at all because e.g. units from [Unitful.jl](https://github.com/PainterQubits/Unitful.jl) do not subtype Number but may be used as number-like values in many circumstances. I agree that it’s a bit disturbing, but couldn’t find a better solution man_shrugging

---

_[View the full topic](https://discourse.julialang.org/t/basic-struct-usage-questions/68932)._
