English 中文(简体)
加入公约:退出地位、退出法或返回法?
原标题:Naming convention: exit status, exit code or return code?

这可能是一个sil然的问题,但对于撤离代码的变动而言,什么是适当的命名?

  • exit_code
  • exit_status
  • return_code
  • ...something else?

I m 提及申请或职能退出代码。

我知道,所有这些都属于同义词,但只有一个同义词,只有<>一致性<>。

谁应该,为什么?

问题回答

在你的团队中使用与其他开发商相同的名称。 如果这不明显,就同意。

接着,方案拟定工作开始,没有打上这种 st子。

在最近的申请中,我们使用了回归家园。 对我们有些人来说,“Exit”一词使人感到,这种方法中有些错误。 回返更加中立,可以自然地用来代表积极和消极的结果。

总的来说,我认为,只要你一致,你就可以选择你想要的东西。





相关问题
XML-RPC Standard and XML Data Type

I was looking at XML-RPC for a project. And correct me if I m wrong, but it seems like XML-RPC has no XML datatype. Are you supposed to pass as a string? or something else? Am I missing something? ...

Is it exists any "rss hosting" with API for creating feeds

I am creating a desktop app that will create some reports. I want to export these reports as RSS or ATOM feeds. I can easily create feeds with Rome lib for Java. But I have no idea how to spread them. ...

Improving Q-Learning

I am currently using Q-Learning to try to teach a bot how to move in a room filled with walls/obstacles. It must start in any place in the room and get to the goal state(this might be, to the tile ...

High-traffic, Highly-secure web API, what language? [closed]

If you were planning on building a high-traffic, very secure site what language would you use? For example, if you were planning on say building an authorize.net-scale site, that had to handle tons ...

Def, Void, Function?

Recently, I ve been learning different programming langages, and come across many different names to initalize a function construct. For instance, ruby and python use the def keyword, and php and ...

热门标签