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;

Reply via email to