Why would var be a bad thing?

前端 未结 17 1930
误落风尘
误落风尘 2020-12-04 17:21

I\'ve been chatting with my colleagues the other day and heard that their coding standard explicitly forbids them to use the var keyword in C#. They had no idea

17条回答
  •  无人及你
    2020-12-04 18:24

    var is the latest "how to lay out your braces"/hungarian notation/Camel casing debate. There is no right answer, but there are people who sit at the extremes.

    Your friend is just unfortunate they work below one of the extremists.

提交回复
热议问题