Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
byte33067yFor JavaScript the second is preferred
For static languages with 'var' keyword support, like C#, the first is preferred -
@byte except var in c# is both static and strongly typed. The compiler figures out the type at compile time. Most modern statically typed languages today completely do away with explicit typing.
-
byte33067y@ElectricCoffee yes, performance is the same in C#
But, var in C# is preferred due to code readability, no other reason
(var shouldn't be used instead of common types like int,bool,etc) -
@byte hover the cursor over the variable to check its type. It's literally a nonissue
Is it true?
undefined
girl friend programmer breakup