The stately := operator feature proposal
Byron Heads
byron.heads at gmail.com
Thu May 30 07:59:06 PDT 2013
On Thursday, 30 May 2013 at 14:41:09 UTC, Byron Heads wrote:
> On Thursday, 30 May 2013 at 14:27:13 UTC, Russel Winder wrote:
>>
>> I still like:
>>
>> x := 1
>>
>> for a declaration and initialization with type inference.
>
>
> Could be used for assigning from tuples.
>
> iVal, sVal := returnsIntAndString();
>
> would have to decide on how to handle this
> x := 1;
> x := y * 7; // error or assignment?
>
> more of an issue with tuples then single lvalues
could also be used without the type inference
int x;
x, string s := returnIntAndString();
------
int wx, wy;
...
wx, wy := window.position;
More information about the Digitalmars-d
mailing list