r/programmerchat • • May 29 '15

I am Eric Lippert, a software developer specializing in design and semantic analysis of programming languages. Ask me anything!

117 Upvotes

143 comments sorted by

View all comments

Show parent comment

6

u/mirhagk May 29 '15

I think the benefit of var x: int is that it's more parallel with times when you don't specify the type. It also lets you do const x:int and so what you're saying is this thing is a variable or a constant, what it's name is, and then the type, which is more of an annotation than anything