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 | 438 | May 8, 2023 | |
| Unpacking struct properties | 3 | 661 | November 4, 2022 | |
| Can a struct be created with field keywords? | 2 | 2840 | August 14, 2019 | |
| Save kwargs in struct field to be used later in function calls | 3 | 744 | February 9, 2020 | |
| With struct do | 19 | 1624 | June 15, 2020 |