The stately := operator feature proposal

Paulo Pinto pjmlp at progtools.org
Wed May 29 23:01:09 PDT 2013


Am 30.05.2013 07:41, schrieb Ali Çehreli:
> On 05/29/2013 05:19 PM, MrzlganeE wrote:
>
>  > The := operator would allow to declare a variable, deduce
>  > its type, and define its value.
>  >
>  > void main() {
>  >      x := 1;
>  >      y := 2.0;
>  >      z := x * y;
>  >      y = 3.0;
>  > }
>
> I like it.
>
> Ali
>

It is like is done in Go.


More information about the Digitalmars-d mailing list