DIP32: Uniform tuple syntax

bearophile bearophileHUGS at lycos.com
Sat Mar 30 11:05:25 PDT 2013


Zach the Mystic:

>> {c, $_} = tup;
>> {c, @} = tup;
>> {c, @_} = tup;
>> {c, $$} = tup;
>> {c, {}} = tup;
>> {c, {_}} = tup;
>> {c, $~} = tup;
>> {c, @~= tup;
>> etc.
>
> {c, ?} = tup;

Right, I was forgetting that.
Or this if you want to keep the single "?" for hypothetical 
future nullable types:

{c, ?_} = tup;

Bye,
bearophile


More information about the Digitalmars-d mailing list