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/
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Decomposing struct in function argument | 4 | 436 | May 8, 2023 | |
| Unpacking struct properties | 3 | 649 | November 4, 2022 | |
| Can a struct be created with field keywords? | 2 | 2833 | August 14, 2019 | |
| Save kwargs in struct field to be used later in function calls | 3 | 742 | February 9, 2020 | |
| With struct do | 19 | 1605 | June 15, 2020 |