DIP32: Uniform tuple syntax

Zach the Mystic reachzach at gggggmail.com
Sat Mar 30 10:07:23 PDT 2013


On Friday, 29 March 2013 at 12:56:10 UTC, bearophile wrote:
> $ is used for array lengths, so it's not so good to overload it 
> to mean "don't care" too.
>
> Alternative syntaxes:
>
> {c, $_} = tup;
> {c, @} = tup;
> {c, @_} = tup;
> {c, $$} = tup;
> {c, {}} = tup;
> {c, {_}} = tup;
> {c, $~} = tup;
> {c, @~= tup;
> etc.

{c, ?} = tup;



More information about the Digitalmars-d mailing list