小编Vil*_*ili的帖子

我应该如何命名这个功能?

function get_IfUnsetAlsoSet_SomeGlobalVariable() {
    if someGlobalVariable is not set {
        someGlobalVariable = somedata
    }
    return someGlobalVariable 
}
Run Code Online (Sandbox Code Playgroud)

我应该给出这样的名字吗?- > getSomeGlobalVariable()
如何命名这些getset函数?

naming-conventions

2
推荐指数
1
解决办法
110
查看次数

标签 统计

naming-conventions ×1