DEV Community

var or explicit type

Xavier Abelaira Rueda on January 28, 2024

๐Ÿ“ƒ Introduction Among the bunch of topics that I would like to cover in this post series, one emerged as an immediate candidate these pas...
Collapse
 
ant_f_dev profile image
Anthony Fung

Personally, I like (and generally use) var. As shown by the photo of books, it makes things a bit tidier and easier to read with a consistence left margin width.

But as with everything in programming, it all depends on the use-case.

Collapse
 
xaberue profile image
Xavier Abelaira Rueda

Agree! The feeling of order is much greater!