Parameter naming: filename or fileName?

前端 未结 9 2045
情歌与酒
情歌与酒 2020-12-29 19:26

I try to be grammatically correct in my naming*. I\'ve always used filename instead of fileName. The java convention also seems to use this, but

9条回答
  •  青春惊慌失措
    2020-12-29 19:50

    Isn't the obvious answer that FxCop is an automated tool? It recognizes that "name" is a word, so it suggests starting it with a capital N. We happen to know that "filename" is also a word, and so only the first F should be capitalized.

提交回复
热议问题