I’ve just implemented a destructuring assignment macro. If people like it and help improve it maybe one day I’ll put together a PR to Julia to make it part of the language without the need to use a macro.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Namedtuple destructuring in macro fails roughly due to macro hygiene (since gensym goes eagerly) | 2 | 357 | September 8, 2022 | |
| How to use destructuring assignment with macro? | 10 | 1493 | November 29, 2017 | |
| Destructuring syntax does not respect const annotation | 2 | 445 | October 14, 2022 | |
| How to desctructure a namedtuple and declare the variables to be constants using the new destructuring syntax? | 1 | 426 | February 21, 2022 | |
| Recommended way to destructuring a type | 7 | 158 | May 13, 2026 |