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 | 340 | September 8, 2022 | |
How to use destructuring assignment with macro? | 10 | 1414 | November 29, 2017 | |
Destructuring syntax does not respect const annotation | 2 | 405 | October 14, 2022 | |
How to desctructure a namedtuple and declare the variables to be constants using the new destructuring syntax? | 1 | 399 | February 21, 2022 | |
Destructuring syntax in julia 1.7 | 66 | 9847 | October 27, 2022 |