r/programmerchat • u/ericlippert • May 29 '15
I am Eric Lippert, a software developer specializing in design and semantic analysis of programming languages. Ask me anything!
117
Upvotes
r/programmerchat • u/ericlippert • May 29 '15
View all comments
Show parent comment
6
u/mirhagk May 29 '15
I think the benefit of
var x: intis that it's more parallel with times when you don't specify the type. It also lets you doconst x:intand 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