Am I immoral for using a variable name that differs from its type only by case?

前端 未结 8 1006
醉梦人生
醉梦人生 2021-02-11 11:43

For instance, take this piece of code:

var person = new Person();

or for you Pythonistas:

person = Person()

I

8条回答
  •  太阳男子
    2021-02-11 12:30

    If someone says that is evil, ask them if this is better:

    var abc = new Person();
    

提交回复
热议问题