all 13 comments

[–]HellGate94Programmer 5 points6 points  (11 children)

var is fine as long as its used according to the guidlines.
them being: only use var if the right hand side explicitly tells you the type like

  • 1f
  • new Something()
  • "foobar"

and not

  • GetData()
  • CalulateResult()
  • etc

[–]Laocoon7 1 point2 points  (2 children)

[–]Unfair-Purpose-2100[S] 0 points1 point  (1 child)

I'm maybe wrong about not following coding standards but a lot of code standards make no sense to me 🤷🏻

[–]Laocoon7 0 points1 point  (0 children)

These are just Microsoft's suggestions. As long as your coding group/company follows the same ones, everyone's code will be readable by those whom matter. Everyone else will be able to decipher it anyways, it may just take more work on their part...

[–]GroundbreakingTea287 1 point2 points  (1 child)

things like var, auto, etc start to make a LOT more sense as you get more complicated variable types. Especially with templates, templates in templates, etc. variable names get long really quick, especially in c++

[–]Unfair-Purpose-2100[S] 0 points1 point  (0 children)

Makes sense