The stately := operator feature proposal
Marco Leise
Marco.Leise at gmx.de
Thu May 30 16:30:02 PDT 2013
Am Thu, 30 May 2013 08:01:09 +0200
schrieb Paulo Pinto <pjmlp at progtools.org>:
> 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.
I don't mind either. I think at first 'auto' was meant to
shorten long template instance names. This seems like the next
step and it looks elegant. Pascal and Go users would love it :D
--
Marco
More information about the Digitalmars-d
mailing list