D roadmap?

bearophile bearophileHUGS at lycos.com
Mon Jul 22 10:18:54 PDT 2013


Joseph Rushton Wakeling:

> What are your issues with tuples? Not doubting, genuinely 
> curious to hear your reasoning.

There's a significant need for a handy safe nice and very compact 
syntax to unpack (de-structure) tuples in assignments, foreach 
loops and function signatures (and switch cases), because the 
current syntax is not good enough. There are few other smaller 
related features that are handy, but they have a lower priority. 
Currently there is also a small syntax mess in tuple unpacking in 
foreach that needs to be fixed.

There are several past threads that show and discuss this topic 
well, that you can read. There is also a DIP created by Kenji, 
that he didn't update with the small suggestions and fixes 
suggested in a thread because the main syntax design of that DIP 
was found to be flawed. Successive suggestions for a workable 
syntax have gone nowhere.

Bye,
bearophile


More information about the Digitalmars-d mailing list