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

前端 未结 10 1157
旧时难觅i
旧时难觅i 2021-02-11 11:58

For instance, take this piece of code:

var person = new Person();

or for you Pythonistas:

person = Person()

I

10条回答
  •  梦如初夏
    2021-02-11 12:29

    I suppose I'll get downvoted for saying so, but ...

    Having just come through a century witnessing epic murder and greed, we programmers are truly blessed if the most immoral thing we can do is name a variable.

提交回复
热议问题