var keyword
does using the var keyboard as opposed to specifying the data type to declare variables affect the performance of the app ?
4 Replies
no, there is no difference
a variable declared with
var
still has a specific type, it's just a shortcut to not have to write it outalr thanks
specifically
var
is type inference, not dynamic typing or anything
the following two lines are compiled to the same output thanks, that clears it up for me!