On Saturday, 7 October 2023 at 17:23:40 UTC, ryuukk_ wrote:
On Saturday, 7 October 2023 at 07:31:45 UTC, mw wrote:
https://stackoverflow.com/questions/47046850/is-there-any-way-to-assign-multiple-variable-at-once-with-dlang
How to do this Python code in D:
```
s = "1 2 3"
A,B,C = map(int, s.split(" "))
A,B,C
(1, 2, 3)
```
Is there a better way (since 2017)?
You can't, there was a DIP for tuple/deconstruction prior to
that question, sadly nothing came out of it, and now the
language is frozen...
Priorities are sadly outside of the language these days..
Tuple DIP in question:
https://github.com/tgehr/DIPs/blob/tuple-syntax/DIPs/DIP1xxx-tg.md