www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: We should deprecate C-style declarations


 Yes please. There is no real use for:
 int myvar[4];
 instead of:
 int[4] myvar;
 and porting from C requires some rewriting anyway.

When you translate this C code: int a[4][10]; You have to remember to invert them to convert them to D: int[10][4] a; As time passes, D gets less and less similar to C. Eventually D will look like Scala ;-) Bye, bearophile
Nov 15 2009