Declaration syntax
    eles 
    eles at eles.com
       
    Wed Jan  8 02:44:24 PST 2014
    
    
  
On Wednesday, 8 January 2014 at 01:26:12 UTC, H. S. Teoh wrote:
> On Wed, Jan 08, 2014 at 12:35:18AM +0000, Adam D. Ruppe wrote:
>> On Wednesday, 8 January 2014 at 00:23:34 UTC, deed wrote:
> 		// Variable declaration
> 		tmp1 : real;
If there is one thing that I would bring from Pascal to C would 
be exactly the declaration syntax, that is:
var tmp1: real;
and the like.
I think this also makes the parsing faster (especially if the 
"var" becomes required) and, IIRC, it was cited among the reasons 
for Go declaration syntax.
    
    
More information about the Digitalmars-d
mailing list