The stately := operator feature proposal

Jonathan M Davis jmdavisProg at gmx.com
Thu May 30 16:50:24 PDT 2013


On Thursday, May 30, 2013 23:36:09 js.mdnq wrote:
> A class is just syntactic sugar for a collection of variables...
> whats the use? It makes it easier for the programmer... same with
> auto, same with :=... If you don't realize that then you should
> think about it some more... (sure a class is more useful BUT that
> is besides the point)

There are orders of magnitudes of difference between providing a new 
abstraction like a class and simply rewriting

auto i = foo;

as

i := foo;

_All_ it does is save you 4 characters and shift where in the statement the 
piece is that tells the compiler to infer the type.

- Jonathan M Davis


More information about the Digitalmars-d mailing list