D roadmap?

ixid nuaccount at gmail.com
Mon Jul 22 16:13:39 PDT 2013


On Monday, 22 July 2013 at 17:18:55 UTC, bearophile wrote:
> 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

What became of using the comma operator with parens for tuples? 
That seemed to offer by far the most elegant option than some of 
the curly bracket messes.


More information about the Digitalmars-d mailing list