how to assign multiple variables at once by unpacking array?
Sergey
kornburn at yandex.ru
Sat Oct 7 16:38:12 UTC 2023
On Saturday, 7 October 2023 at 16:12:47 UTC, mw wrote:
> Interesting: in terms of easy of coding, clarity and future
> maintenance, which one is superior?
There is no superior languages. They can successfully co-exist
and play in different areas.
> The one liner in Python, or your "solution" with dozen lines of
> code? BTW, is that a solution at all? Did it achieved what the
> original goal asked in the OP question?
AFAIK No, D doesn’t have this feature (still). But you can write
some kind of workaround code that will do similar thing, but not
exactly what you want. Probably solution in SO is the closest one.
More information about the Digitalmars-d-learn
mailing list