bearophile Wrote:

> Walter Bright:
> > Andrei introduced me to that style, and I'm starting to use it more and 
> > more. I like it for the reasons you state.
> 
> I'm not using it because I'm not using D2 much yet, but I have read that a 
> good number of people are adopting that style in other languages as Scala, so 
> it can be a good way to program (I can appreciate it myself). If this is true 
> then a syntax like:
> auto immutable x = y * 2;
> 
> can be seen as too much long and boring to write all the time, so the 
> "immutable" keyword may need to be changed again :-)

Fortunately, the "auto" keyword can be left out.  "auto" is actually a storage 
class, it doesn't directly mean "infer the type."

Reply via email to