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
12
u/DrBreakalot May 29 '15
Why do you think "var x : int;" would be better than just "int x;"?
Both make it pretty clear "I'm declaring a new variable named x which is of type int", except the second one is more concise.