Naming convention for params of ctors and setters

前端 未结 12 1872
轻奢々
轻奢々 2021-01-05 00:42

For those of you who name you member variables with no special notation like m_foo or foo_, how do you name parameters to your ctors and setters?

12条回答
  •  独厮守ぢ
    2021-01-05 01:36

    I'm using foo_, it's better than _foo since it won't conflict with implementation specific function names and keywords.

提交回复
热议问题